fix: close table dialog and restore editor focus after confirm

This commit is contained in:
milvasic 2026-03-24 18:50:32 +01:00
parent 0ad53f9dd3
commit 324c644071
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ const MemoEditorImpl: React.FC<MemoEditorProps> = ({
const handleTableConfirm = useCallback((markdown: string) => {
editorRef.current?.insertText(markdown);
setTableDialogOpen(false);
editorRef.current?.focus();
}, []);
useKeyboard(editorRef, handleSave);