-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Cannot type decimal point if value bound to array element #2759
Comments
That's indeed a bug in Svelte currently. For now, you can use |
I just finished creating a fix for this, but want to test it a bit more before submitting a PR. Also need to see if some of my changes are required on the SSR side. Binding to an array or object is indeed broken. It only appears to work because a test for Code sample:
The context,
The comparison that takes place when entering a number
so
|
Seems like this was solved: REPL |
It's probably not worth it to struggle with JSDOM on this, likely fruitlessly. Closing. |
For this snippet of code:
I can only type a decimal point in the second input, not in the first. Somehow binding the value to an array elements breaks things.
Being able to bind values to an array is useful for calculating averages, sums, etc. If anyone knows a workaround for now, please comment as well!
The text was updated successfully, but these errors were encountered: