Support composition in placeholder #3425
Closed
yf-yang
started this conversation in
Feature Requests
Replies: 4 comments 4 replies
-
Related #3250 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could listen globally for the |
Beta Was this translation helpful? Give feedback.
4 replies
-
Alright, I decide to patch slate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Composition is a special event that triggers when using input methods. It shows some characters, but actually the editor state is not updated.
Currently, placeholder does not support composition, so there will be collision when typing:
Slate internally supports it:
https://github.com/ianstormtaylor/slate/blob/c3a4e1e3f9f61af345fe1df34cc44440b4d9d558/packages/slate-react/src/components/editable.tsx#L872-L877
However, the isComposing is only exposed as a boolean instead of a state, so afaik plate cannot capture it timely.
Is there any solution with the case?
Beta Was this translation helpful? Give feedback.
All reactions