From 54edbc3f2eb8d98ec7da2960a386f2d51713f0df Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Tue, 25 Mar 2025 16:00:22 +0500 Subject: [PATCH] web: don't remove properties pane when editor is refocused (#7780) Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- apps/web/src/components/editor/index.tsx | 2 -- 1 file changed, 2 deletions(-) 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(0); const root = useRef(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 }} />