fix: cursor jump when title is set from content

This commit is contained in:
thecodrr
2021-02-27 09:15:13 +05:00
parent 8034c7287a
commit 720e68cfe3

View File

@@ -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