From df64de530611eddec4024b3f2e7590085bfb629a Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Fri, 27 Feb 2026 01:38:43 +0000 Subject: [PATCH] fix focus --- .../src/features/editor/components/status/status-view.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/features/editor/components/status/status-view.tsx b/apps/client/src/features/editor/components/status/status-view.tsx index c6d8da39..d8f10d79 100644 --- a/apps/client/src/features/editor/components/status/status-view.tsx +++ b/apps/client/src/features/editor/components/status/status-view.tsx @@ -26,7 +26,7 @@ const colorClassMap: Record = { }; export default function StatusView(props: NodeViewProps) { - const { node, updateAttributes, deleteNode, editor } = props; + const { node, updateAttributes, deleteNode, editor, getPos } = props; const { text, color } = node.attrs as { text: string; color: StatusColor; @@ -109,6 +109,7 @@ export default function StatusView(props: NodeViewProps) { onKeyDown={(e) => { if (e.key === "Enter") { setOpened(false); + editor.commands.focus(getPos() + node.nodeSize); } }} placeholder="Status text"