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
{{ message }}
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
with some investigation,I console the editorState.toJS(), find out below:
after I select a inlinestyle, I begin IME input and console.log the editorState.toJS()
at the first press of keyboard,
the onChange fires twice.
here is the two editorState.toJS()
you can see the pre selected inline style (inlineStyleOverride) is gone during the first keyboard press.
What is the expected behavior?
support IME input
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Do you want to request a feature or report a bug?
IME mode bug
What is the current behavior?
just see the draftjs.org example

with some investigation,I console the editorState.toJS(), find out below:

after I select a inlinestyle, I begin IME input and console.log the editorState.toJS()
at the first press of keyboard,
the onChange fires twice.
here is the two editorState.toJS()
you can see the pre selected inline style (inlineStyleOverride) is gone during the first keyboard press.
What is the expected behavior?
support IME input
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
draft-js: draftjs.org example
OS: window 10