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