Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
EN-Dash Causes onChange to fire in IE11 on Render #2185
@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.
referenced this issue
Mar 11, 2015
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.)