mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-24 09:13:24 +01:00
fix: IME repeat input (#3768)
This commit is contained in:
parent
efce5373fd
commit
459e826d58
@ -521,8 +521,10 @@ export const Editable = (props: EditableProps) => {
|
|||||||
hasEditableTarget(editor, event.target)
|
hasEditableTarget(editor, event.target)
|
||||||
) {
|
) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
const text = (event as any).data as string
|
if (!state.isComposing) {
|
||||||
Editor.insertText(editor, text)
|
const text = (event as any).data as string
|
||||||
|
Editor.insertText(editor, text)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[readOnly]
|
[readOnly]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user