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
We ran into an issue with text fields that are numeric, but able to blanked out (such as a user clearing the field before entering a new value). If the value is an empty string, and we then try to set the value to 0 and re-render the diff is empty and the result doesn't change.
Repro:
Load JsBin
Note empty input
Click "zero" button, note input contains 0.
Click "value" button, note input contains 125.
Click "empty" button, note input is empty.
Click "zero" button, note input remains empty.
Click "value" button, note input contains 125
Expected:
When input is empty and the value is change to 0, the input value would change in the next render.
Note: This isn't a problem going from 0 to an empty string, in that case it properly updates the input value.
@lhorie that was my suspicion as well, but figured I'd report any ways. I haven't tracked down where exactly this is running into trouble but I'm hoping I'll be able to look soon.
http://jsbin.com/susifidowo/1/edit?js,output
We ran into an issue with text fields that are numeric, but able to blanked out (such as a user clearing the field before entering a new value). If the value is an empty string, and we then try to set the value to
0
and re-render the diff is empty and the result doesn't change.Repro:
0
.125
.125
Expected:
When input is empty and the value is change to
0
, the input value would change in the next render.Note: This isn't a problem going from
0
to an empty string, in that case it properly updates the input value.Repro Code
The text was updated successfully, but these errors were encountered: