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

Lose focus after input Chinese in certain condition #2594

Closed
djheart0710 opened this issue Feb 13, 2019 · 2 comments
Closed

Lose focus after input Chinese in certain condition #2594

djheart0710 opened this issue Feb 13, 2019 · 2 comments

Comments

@djheart0710
Copy link

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

Bug

What's the current behavior?

JSFiddle Example:
https://jsfiddle.net/bzvw84tu/1/
reproduce process:

  • add an sibling after Editor component
  • delete all content in editor
  • start to input Chinese, after click space, editor's value changes, but it loses focus

The weird thing is, if I put the sibling before Editor component, or just remove the Editor's placeholder props, or just input English words, It works perfect! Now I haven't find out what's going wrong, just knowing it may relates to placeholder props.

Environment: MacOS 10.14.2 / Chrome 72.0.3626.96

What's the expected behavior?

Expected: No matter what inputs, what props passed to Editor, It should work as normal!

@djheart0710
Copy link
Author

Has anyone encountered this situation?

@ianstormtaylor
Copy link
Owner

Hey, thanks for reporting this. I think this is actually a duplicate of #2368, so I'm going to close this in favor of that one. Feel free to comment over there with any other info!

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

2 participants