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
When setting and removing focus from an empty <input /> field with some placeholder text, the onChange event is triggered for IE 11 (I have not tested older versions). It does not trigger for other browsers.
My current work-around is to test the value that was last passed to the input with what is returned by event.target.value, and only act if they are different, but it would be nice if React would not send the change-event in the first place.
The text was updated successfully, but these errors were encountered:
Yeah, this seems odd. Probably on the challenging side for a first bug, but it would be good to figure out why this is happening and how we can prevent it, while still making it possible to type the placeholder text in directly as @captray says.
See http://jsfiddle.net/69z2wepo/3887/ for example code.
When setting and removing focus from an empty
<input />
field with someplaceholder
text, theonChange
event is triggered for IE 11 (I have not tested older versions). It does not trigger for other browsers.My current work-around is to test the
value
that was last passed to the input with what is returned byevent.target.value
, and only act if they are different, but it would be nice if React would not send the change-event in the first place.The text was updated successfully, but these errors were encountered: