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
Controlled inputs in current Safari, Firefox and Chrome let you input anything as if they were not controlled. They do work as supposed in IE9 and Chrome Dev build. I don't have IE 10 or 11 to test those.
More detailed info: when <input type="number" /> component receives string as value property it silently ignores it and behaves like uncontrolled one.
Above example works as intended when you change default value to NaN.
piratus
changed the title
Controlled components do not work in some browsers
Controlled inputs with type="number" do not work in some browsers
May 4, 2015
Controlled inputs in current Safari, Firefox and Chrome let you input anything as if they were not controlled. They do work as supposed in IE9 and Chrome Dev build. I don't have IE 10 or 11 to test those.
Here is a sample JSBin that reproduces the problem: http://jsbin.com/yahitu/1/edit?js,output
The text was updated successfully, but these errors were encountered: