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
butchmarshall
changed the title
Microsoft Edge - Has textInput event but it's not useful and crashes Draft-JS
Microsoft Edge - Has textInput event fires twice during ctrl-a selection + keypress and crashes Draft-JS
Jul 13, 2016
This issue was discovered while building an editor in Draft-JS (see original issue filed here)
Edge provides a TextEvent - but it's still not useful. Disabling canUseTextInputEvent in React for Edge fixes the Draft-JS issue.
To reproduce the bug in Draft-JS:
Go to https://facebook.github.io/draft-js
type "a"
hit enter
type ctrl-a to select everything
type "j"
You'll get a javascript error. The editor (actually, the ReactDomComponent) is then in a confused state.
The DOM component that the react component points to is prematurely removed.
The text was updated successfully, but these errors were encountered: