mirror of https://github.com/usememos/memos.git
fix: close table dialog and restore editor focus after confirm
This commit is contained in:
parent
0ad53f9dd3
commit
324c644071
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue