Skip to content

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

web: don't remove properties pane when editor is refocused (#7780)

01zulfi3f344c7249d9
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 68588fca1..564bc97b2 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -252,7 +252,6 @@ function EditorView({
const lastChangedTime = useRef<number>(0);
const root = useRef<HTMLDivElement>(null);
- const toggleProperties = useEditorStore((store) => store.toggleProperties);
const isFocusMode = useAppStore((store) => store.isFocusMode);
const editor = useEditorManager((store) => store.editors[session.id]?.editor);
@@ -376,7 +375,6 @@ function EditorView({
}}
options={{
readonly: session?.type === "readonly" || session?.type === "deleted",
- onRequestFocus: () => toggleProperties(false),
focusMode: isFocusMode
}}
/>