`BubbleMenu` can be stranded if menu action does not return focus to editor
Author: priceldCreated Sep 9, 2026Updated Sep 9, 2026
Labelsstatus: triagearea: editorcomplexity: easyimpact: medium
Affected Packages
extension-bubble-menu
Tiptap Version
3.31.3
Browser Used
Firefox
What happened?
When focus moves from a BubbleMenu to someplace outside the editor, the BubbleMenu is left open and "stranded". This can happen when a button in the bubble menu does not immediately return focus to the editor (e.g. it opens a dropdown).
Expected Behavior
I expected the BubbleMenu to close once focus left the editor.
Reproducible Example URL (Optional)
https://stackblitz.com/github/priceld/tiptap-bubble-menu-repro
Additional Context (Optional)
[!NOTE] I did use Claude to build the repro (though I did review it). Also note, it describes two bugs which both have the same behavior. This particular issue is described by "bug 1".
Source: ueberdosis/tiptap