Skip to content

BubbleMenu throws error when toggled via conditional mount/unmount (v-if) #7685

@NEXINEW

Description

@NEXINEW

Affected Packages

import { BubbleMenu } from '@tiptap/vue-3/menus'

Version(s)

3.22.0

Bug Description

When using BubbleMenu with conditional rendering (e.g. v-if) to toggle its visibility, the component throws runtime errors after being unmounted and mounted again.

According to the official example, it should be possible to toggle the menu (e.g. via a button) without issues. However, in practice, re-mounting the BubbleMenu leads to unstable behavior and occasional crashes.

Browser Used

Chrome

Code Example URL

https://codesandbox.io/p/sandbox/tiptap-vue-3-ci7q9h

Expected Behavior

BubbleMenu should safely mount and unmount multiple times without throwing errors, consistent with the official example.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions