fix: import markdown ouvre l'explorateur (setTimeout hors cycle dropdown)
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Antigravity
2026-05-29 13:42:46 +00:00
parent b825bdb8b2
commit 435de0a30c

View File

@@ -301,7 +301,7 @@ export function NoteEditorToolbar({ mode, onClose, onToggleAttachments, attachme
<FileDown className="h-4 w-4 me-2" />
{t('richTextEditor.exportMarkdown')}
</DropdownMenuItem>
<DropdownMenuItem onClick={() => mdImportInputRef.current?.click()}>
<DropdownMenuItem onClick={() => setTimeout(() => mdImportInputRef.current?.click(), 0)}>
<FileUp className="h-4 w-4 me-2" />
{t('richTextEditor.importMarkdown')}
</DropdownMenuItem>