New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EN-Dash Causes onChange to fire in IE11 on Render #2185
Comments
I can't reproduce it outside of React and I can't find any related code in |
@syranide yeah I tried looking through the code but in my limited experience with internals of React couldn't find anything that would be caused by such a specific thing as adding in an en-dash (although I haven't looked if other characters cause it as well). Plus it doesn't happen in any other browser thus the IE11 specific issue. It seems as if the event type that is being triggered is not of the change variety but of a beforeInput event or something along those lines. |
@browniefed Sorry for forgetting about this, you are indeed correct about However, I see no obviously best/neat solution.
cc @zpao @yungsters |
@syranide No problem, I ended up just comparing the |
cc @salier |
I also experience this issue. In addition to when the value contains non-ascii characters, it happens the first time a value is set when the input element has a placeholder that contains non-ascii characters. This code reproduces it outside of React. When the page loads, the text "failed" will be shown beneath the input-field, which it should not. With a non-ascii value:
With a non-ascii placeholder:
While it is not an issue with React, it would be nice if React could add some workaround for it, since you easily run into this bug when using React. (I'm not sure what that workaround would be though.) |
I don't know if this is an issue with React or IE11 but when an the input initially contains an EN-dash (8211) it fires the change event.
JSFiddle http://jsfiddle.net/uH539/10/
The text was updated successfully, but these errors were encountered: