Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: cursor jump when title is set from content

thecodrr720e68cfe3ca
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 (
<Flex