-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
Description
I ran into an issue for number input fields with an onChange that directly invokes a set transition. This prevents the user from inputting decimals because 123. would immediately return 123 as demonstrated here:
This isn't a problem when using an onBlur or a form, but I've been using the solution below for cases where onChange is necessary:
class NumberInput{
get value(){
return valueOf(this)
}
get state(){
return +valueOf(this)
}
}Is there a more appropriate way around this?
