diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index 5129cb6a4..2ade810d0 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -131,6 +131,10 @@ export default function SelectionToolbar(props: Props) { return; } + if (!window.getSelection()?.isCollapsed) { + return; + } + const { dispatch } = view; dispatch( view.state.tr.setSelection(new TextSelection(view.state.doc.resolve(0)))