Skip to content

Commit

Permalink
Fix svelte input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Oct 28, 2024
1 parent 016e1dd commit 16a8201
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
if (!isNaN(num) && min <= num && num <= max) next = num
}
// Manually update the input.value in case the number stays the same e.g. 09 == 9
console.log(next)
input.value = String(next)
value = next
}
Expand Down Expand Up @@ -69,7 +70,7 @@
autocomplete="off"
inputmode="numeric"
{max}
bind:value
{value}
oninput={handleInput}
/>
<NumberFlow
Expand Down

0 comments on commit 16a8201

Please sign in to comment.