diff --git a/src/extensions/LinkBubblePluginView.js b/src/extensions/LinkBubblePluginView.js index 3f5d09f53dd..5cbf2b0e91d 100644 --- a/src/extensions/LinkBubblePluginView.js +++ b/src/extensions/LinkBubblePluginView.js @@ -123,8 +123,11 @@ class LinkBubblePluginView { const hasBubbleFocus = this.#component.element.contains(document.activeElement) const hasEditorFocus = view.hasFocus() || hasBubbleFocus - - const shouldShow = !!linkNode && hasEditorFocus + // Preview menu might be open when selection is before the link. + const insideLink = resolved.textOffset !== 0 + const shouldShow = !!linkNode + && hasEditorFocus + && insideLink this.updateTooltip(view, shouldShow, linkNode, nodeStart) }, 250)