From 720e68cfe3ca465ffeb3749ca58606f1b1d1ed42 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Sat, 27 Feb 2021 09:15:13 +0500 Subject: [PATCH] fix: cursor jump when title is set from content --- apps/web/src/components/editor/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js index ca4121081..df9e06b3c 100644 --- a/apps/web/src/components/editor/index.js +++ b/apps/web/src/components/editor/index.js @@ -89,8 +89,7 @@ function Editor({ noteId }) { editor.off("init", setContents); }; } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [editorRef, contentType, sessionId]); + }, [editorRef, contentType, sessionState]); return (