mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-19 13:41:19 +02:00
Fix onCompositionEnd not updating isComposing (#5584)
* fix: onCompositionEnd not updating isComposing * Add changeset
This commit is contained in:
@@ -1114,7 +1114,7 @@ export const Editable = (props: EditableProps) => {
|
||||
(event: React.CompositionEvent<HTMLDivElement>) => {
|
||||
if (ReactEditor.hasSelectableTarget(editor, event.target)) {
|
||||
if (ReactEditor.isComposing(editor)) {
|
||||
Promise.resolve(() => {
|
||||
Promise.resolve().then(() => {
|
||||
setIsComposing(false)
|
||||
IS_COMPOSING.set(editor, false)
|
||||
})
|
||||
|
Reference in New Issue
Block a user