diff --git a/packages/client/src/tiptap/menus/link.tsx b/packages/client/src/tiptap/menus/link.tsx index f00d8b62..7a9afb0f 100644 --- a/packages/client/src/tiptap/menus/link.tsx +++ b/packages/client/src/tiptap/menus/link.tsx @@ -62,7 +62,7 @@ export const LinkBubbleMenu = ({ editor }) => { toggleVisible(true); }, []); - const unsetLink = useCallback(() => editor.chain().unsetLink().run(), [editor]); + const unsetLink = useCallback(() => editor.chain().extendMarkRange(Link.name).unsetLink().run(), [editor]); useEffect(() => { if (!isLinkActive) return;