Skip to content

BubbleMenu can be stranded if menu action does not return focus to editor #8333

Description

@priceld

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".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: editorEditor behavior, commands, and transactionscomplexity: easySmall effort, well-defined scopeimpact: mediumAffects some users or workflowsstatus: triageNeeds initial review and categorization

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions