From e1eb4ff9a0e6ad4567fb1d800faa52d94c7dd281 Mon Sep 17 00:00:00 2001 From: pipisebastian Date: Wed, 4 Dec 2024 16:26:00 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20backspace=EB=88=8C=EB=A0=80?= =?UTF-8?q?=EC=9D=84=EB=95=8C=20=EC=BA=90=EB=9F=BF=20=ED=8A=80=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #278 --- client/src/features/editor/Editor.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/features/editor/Editor.tsx b/client/src/features/editor/Editor.tsx index d2a5c60..008a9ba 100644 --- a/client/src/features/editor/Editor.tsx +++ b/client/src/features/editor/Editor.tsx @@ -246,10 +246,8 @@ export const Editor = ({ onTitleChange, pageId, pageTitle, serializedEditorData block.crdt.currentCaret = currentCaret + characters.length; } - composingCaret.current = null; - if (isSameLocalChange.current) { - isSameLocalChange.current = false; - } + isLocalChange.current = false; + isSameLocalChange.current = false; }, [editorCRDT, pageId, sendCharInsertOperation], );