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

the style hits are not available before ENTER key press using IME #1886

rt33 opened this Issue Oct 4, 2018 · 0 comments


None yet
1 participant
Copy link

rt33 commented Oct 4, 2018

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

I guess a bug.

What is the current behavior?

We are using IME in Japanese-speaking countries.
The timing when the style is applied to the character string is after IME conversion is confirmed(oncompsitionend).

  1. The first "ABCDE" is applied Bold and Italic(correct).

  2. Turn off styles Bold and Italic.

  3. The Second "ABCDE" is still applied Bold and Italic(wrong).

  4. When input is completed (press ENTER key), it's turn off styles Bold and Italic(too late).

What is the expected behavior?

The style selected by the user during IME conversion should be applied that above mentioned 3.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

All as far as I can tell. No blaming the line this statement has been there since the project was open sourced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment