fix: import markdown ouvre l'explorateur (setTimeout hors cycle dropdown)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -301,7 +301,7 @@ export function NoteEditorToolbar({ mode, onClose, onToggleAttachments, attachme
|
|||||||
<FileDown className="h-4 w-4 me-2" />
|
<FileDown className="h-4 w-4 me-2" />
|
||||||
{t('richTextEditor.exportMarkdown')}
|
{t('richTextEditor.exportMarkdown')}
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem onClick={() => mdImportInputRef.current?.click()}>
|
<DropdownMenuItem onClick={() => setTimeout(() => mdImportInputRef.current?.click(), 0)}>
|
||||||
<FileUp className="h-4 w-4 me-2" />
|
<FileUp className="h-4 w-4 me-2" />
|
||||||
{t('richTextEditor.importMarkdown')}
|
{t('richTextEditor.importMarkdown')}
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user