Open
Description
This is a list of known upstream issues that are not resolved yet.
Browsers
- Chrome & Safari cannot select end of inline DOM elements #3148 — Chrome & Safari cannot select end of inline DOM elements
- Firefox does not fire
beforeinput
events #3185 — Firefox does not firebeforeinput
events - Chrome does not fire
insertFromComposition
events #3303 — Chrome does not fireinsertFromComposition
beforeinput
events - Chrome does not fire
insertFromDrop
beforeinput
events for files #3304 — Chrome does not fireinsertFromDrop
beforeinput
events for files
You might have to add workarounds to these issues in your codebase. If there is a general-purpose fix for an issue we'd love a PR. But sometimes these are things we cannot work around easily (or at all) until they are fixed upstream by the browsers themselves. Please star the browser bug reports in these issues to help draw attention!
React
- Use the native
beforeinput
event if it's supported facebook/react#11211 — React does not listen for the realbeforeinput
event -
onSelectionChange
event facebook/react#5785 — React does not expose the realselectionchange
event
These issues are bugs in React's own logic. You may have to write workarounds for these issues in your codebase when dealing with React's synthetic events. If you are able to, it would be extremely helpful if you could pull request a fix upstream.