From 435de0a30cff6fbaec2e14d1d1ab2caf832b4571 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Fri, 29 May 2026 13:42:46 +0000 Subject: [PATCH] fix: import markdown ouvre l'explorateur (setTimeout hors cycle dropdown) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- memento-note/components/note-editor/note-editor-toolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memento-note/components/note-editor/note-editor-toolbar.tsx b/memento-note/components/note-editor/note-editor-toolbar.tsx index a7bb3a9..731ee7d 100644 --- a/memento-note/components/note-editor/note-editor-toolbar.tsx +++ b/memento-note/components/note-editor/note-editor-toolbar.tsx @@ -301,7 +301,7 @@ export function NoteEditorToolbar({ mode, onClose, onToggleAttachments, attachme {t('richTextEditor.exportMarkdown')} - mdImportInputRef.current?.click()}> + setTimeout(() => mdImportInputRef.current?.click(), 0)}> {t('richTextEditor.importMarkdown')}