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

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-03-25 16:00:22 +05:00
committed by Ammar Ahmed
parent 04986b594a
commit 54edbc3f2e

View File

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