From 8ef67dcc1fa5bf896260e063801df3f49c2e6052 Mon Sep 17 00:00:00 2001 From: sepehr Date: Sat, 2 May 2026 22:10:56 +0200 Subject: [PATCH] fix: slash menu tabs - prevent editor focus loss on click with onMouseDown preventDefault --- memento-note/components/rich-text-editor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memento-note/components/rich-text-editor.tsx b/memento-note/components/rich-text-editor.tsx index 80612b6..8da4e8f 100644 --- a/memento-note/components/rich-text-editor.tsx +++ b/memento-note/components/rich-text-editor.tsx @@ -441,9 +441,10 @@ function SlashCommandMenu({ editor, onInsertImage }: { editor: Editor; onInsertI
e.stopPropagation()}> {/* Category tabs */} {!query && totalVisible > 1 && ( -
+
e.preventDefault()}>