<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fran</title>
    <description>The latest articles on DEV Community by Fran (@fran_daruu).</description>
    <link>https://dev.to/fran_daruu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1229899%2F015c75ea-2988-4411-81c5-a0418464186e.jpeg</url>
      <title>DEV Community: Fran</title>
      <link>https://dev.to/fran_daruu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fran_daruu"/>
    <language>en</language>
    <item>
      <title>Can you help me understand this unexpected behaviour?</title>
      <dc:creator>Fran</dc:creator>
      <pubDate>Sat, 09 Dec 2023 23:02:31 +0000</pubDate>
      <link>https://dev.to/fran_daruu/can-you-help-me-understand-this-unexpected-behaviour-22d3</link>
      <guid>https://dev.to/fran_daruu/can-you-help-me-understand-this-unexpected-behaviour-22d3</guid>
      <description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;So some time ago I wrote a D&amp;amp;D stat calculator thingie in React. I recently had the opportunity to apply to a Vue position, and as I was interested in Vue, I quickly read through the docs and thought it'd be a fun exercise to "translate" the app to Vue. I later got carried away and tried Svelte, too!&lt;/p&gt;

&lt;p&gt;The thing is, I had issues with one particular single-digit input. I used two-way binding to sync it to a ref, with custom "validation". The behind-the-scene state updates correctly, but the input value "unbinds" when typing more than one key, frustratingly.&lt;/p&gt;

&lt;p&gt;I ended up manually re-affirming event.target.value to the same value I pass through the emit function to update the v-model ref as its described in the docs.&lt;/p&gt;

&lt;p&gt;So, I solved it, but it bugs me, what is happening? In React or Svelte I didnt have this problems with the same-ish validation on input, so I'm not enterely satisfied by not knowing why it happens in the first place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/daruufex/dnd-point-shop-vue/blob/main/src/components/StatItem.vue"&gt;Link to the parent component&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/daruufex/dnd-point-shop-vue/blob/main/src/components/AncestryBonus.vue"&gt;Link to the child component&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dnd-point-shop-vue.netlify.app/"&gt;Link to the deployed app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>vue</category>
    </item>
  </channel>
</rss>
