Skip to content

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

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.

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 transactionsarea: vueVue integration and componentscomplexity: mediumModerate change, possibly multiple filesimpact: 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