1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 20:51:20 +02:00

Fix invalid cursor when IME converting (#4450)

This commit is contained in:
Seiichi Nishikata
2021-08-13 19:52:42 +09:00
committed by GitHub
parent 0025900349
commit 220f2d2ce6
2 changed files with 6 additions and 0 deletions

View File

@@ -912,6 +912,7 @@ export const Editable = (props: EditableProps) => {
(event: React.KeyboardEvent<HTMLDivElement>) => {
if (
!readOnly &&
!state.isComposing &&
hasEditableTarget(editor, event.target) &&
!isEventHandled(event, attributes.onKeyDown)
) {