-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For input[type=number] bound value not equal event value #584
Comments
Here's where I've had unpleasant experiences in the past trying to do cross-browser stuff with |
What about treating the empty string as |
Opened #606 which implements that. Let me know what you think.
Yes, it's the only non-numeric value it's possible to enter in a |
coerce empty string in number/range inputs to undefined
Sorry for the absence. It works for me now, so thanks so much for finding a solution! |
Reproduction of issue in this REPL: https://svelte.technology/repl?version=1.20.2&gist=348577339ab2e03462b1279b38d9975b
This issue occurs when using a bound value and the
on:change
event for an<input type="number">
element.0
while the event value is""
.on:change
event value should allow for the empty string, and not coerce the value to0
.The text was updated successfully, but these errors were encountered: