Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PRO]: DragHandle extension conflicts with BubbleMenu #6148

Open
1 task done
howardah opened this issue Mar 1, 2025 · 1 comment
Open
1 task done

[PRO]: DragHandle extension conflicts with BubbleMenu #6148

howardah opened this issue Mar 1, 2025 · 1 comment
Labels
Category: Pro The issue or pull request is related to the pro packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@howardah
Copy link

howardah commented Mar 1, 2025

Affected Packages

vue-3, extension-bubble-menu, extension-drag-handle

Version(s)

2.11.5

Description of the Bug

There seems to be a conflict between tippy instances when using the BubbleMenu and DragHandle Extensions together.

They work as expected individually, but when put together in the same editor, the BubbleMenu tippy instance destroys the DragHandle tippy instance on initiation (rending the DragHandle non-functional).

I've tried changing the 'appendTo' element in the tippy options for one or both extensions, to no avail.

If this is a known issue with an available workaround, I would love to know how to solve it.

Thank you!

Browser Used

Chrome

Code Example (Preferred)

https://codesandbox.io/p/devbox/kjtnn7

Expected Behavior

I would expect the two tippy instances to coexist without conflict.

Additional Context (Optional)

I have only tried this with the vue-3 BubbleMenu component. Maybe this isn't an issue with react or vanilla implementations.

Dependency Updates

  • Yes, I've updated all my dependencies.
@howardah howardah added Category: Pro The issue or pull request is related to the pro packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Mar 1, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Tiptap: Issues Mar 1, 2025
@howardah
Copy link
Author

howardah commented Mar 1, 2025

Just a note that there's no issue if I use the BubbleMenu with the plain js implementation:

import { Editor } from '@tiptap/core'
import StarterKit from "@tiptap/starter-kit";
import BubbleMenu from '@tiptap/extension-bubble-menu'
import DragHandle from "@tiptap-pro/extension-drag-handle";

new Editor({
  extensions: [
    StarterKit,
    BubbleMenu.configure({
      element: document.querySelector('.bubble-menu'),
    }),
    DragHandle
  ],
})

and add my vue component in the <div class="bubble-menu"></div> element.

So there is no conflict, it seems between the DragHandle and the BubbleMenu extensions (so I can carry on without issue myself) but it is worth noting that you cannot use, it would seem, the Vue component BubbleMenu with the DragHandle extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Pro The issue or pull request is related to the pro packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant