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 }}
Repository navigation
Input type="number", when initial value is "0" or 0, and value changes to empty string "", value does not update #9884
My best guess is that maybe React is doing some truthiness checking which thinks that 0 is the same as "", so it is not updating the value of the component.
changed the title [-]Input type="number", when initial value is `"0"` or `0`, and value changes to empty string "", value does not update properly[/-][+]Input type="number", when initial value is `"0"` or `0`, and value changes to empty string "", value does not update[/+]on Jun 7, 2017
Activity
[-]Input type="number", when initial value is `"0"` or `0`, and value changes to empty string "", value does not update properly[/-][+]Input type="number", when initial value is `"0"` or `0`, and value changes to empty string "", value does not update[/+]aweary commentedon Jun 7, 2017
Thanks for the report @brendoncrawford!
I believe this will be resolved by #9714
gaearon commentedon Jul 11, 2017
This was fixed in #9714 and no longer reproduces.