You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2023. It is now read-only.
When a float input has a current value like 7, it's impossible to type a . after it to eventually type something like 7.5.
The reason is that it parses the intermediate 7. as 7 and then immediately overrides the input value with that.
Once you know what the issue is, you can somewhat work around it by first typing 75 and then inserting the period but it's pretty confusing at first.
I guess one possible solution could be to not override the input if it's functionally identical, i.e. before setting the input value when the setting changed, parse the current input and check whether it's already the same value and if so, don't override it. This would also avoid the somewhat odd behavior of it automatically changing .7 to 0.7 and would also avoid it changing 7.0 to 7 if you want to type 7.05.
The text was updated successfully, but these errors were encountered:
When a float input has a current value like
7
, it's impossible to type a.
after it to eventually type something like7.5
.The reason is that it parses the intermediate
7.
as7
and then immediately overrides the input value with that.Once you know what the issue is, you can somewhat work around it by first typing
75
and then inserting the period but it's pretty confusing at first.I guess one possible solution could be to not override the input if it's functionally identical, i.e. before setting the input value when the setting changed, parse the current input and check whether it's already the same value and if so, don't override it. This would also avoid the somewhat odd behavior of it automatically changing
.7
to0.7
and would also avoid it changing7.0
to7
if you want to type7.05
.The text was updated successfully, but these errors were encountered: