Skip to content
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

onBeforeInput fires after browser updates the DOM for special characters like "中" or 😣on Firefox and Edge #16161

Open
Chun-Yang opened this issue Jul 19, 2019 · 2 comments

Comments

@Chun-Yang
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
onBeforeInput fires after browser updates the DOM for special characters like "中" or 😣on Firefox and Edge
https://codesandbox.io/s/modest-franklin-muirj
NOTE: pasting it would not trigger the bug, you have to type it in. You can use control-command-space to open the emoji keyboard on mac

What is the expected behavior?
DOM should not update before onBeforeInput fires

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React: 16.3.1
Firefox: 68.0.1
Mac: 10.14.5

@stale
Copy link

stale bot commented Jan 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jan 10, 2020
@stale
Copy link

stale bot commented Jan 17, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

@stale stale bot closed this as completed Jan 17, 2020
@gaearon gaearon reopened this Apr 1, 2020
@stale stale bot removed the Resolution: Stale Automatically closed due to inactivity label Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants