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]: @tiptap-pro/extension-drag-handle-react not working when setting tippyOptions placement #5929

Open
1 task done
abdobargush opened this issue Dec 12, 2024 · 0 comments
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

@abdobargush
Copy link

abdobargush commented Dec 12, 2024

Affected Packages

@tiptap-pro/extension-drag-handle-react

Version(s)

2.16.3

Description of the Bug

In the provided nextjs code example
This code appears in templates/next-block-editor-app/src/components/BlockEditor/BlockEditor.tsx

<DragHandle
  pluginKey="ContentItemMenu"
  editor={editor}
  onNodeChange={data.handleNodeChange}
  tippyOptions={{
    offset: [-2, 16],
    zIndex: 99,
  }}
>

when setting placement in tippyOptions to right or right-* the drag and drop doesn't work at all
when setting placement in tippyOptions to top or top-* the drag and drop works sometimes, sometimes not

PS: The handle appears correctly but the drag and drop doesn't work

Browser Used

Chrome

Code Example (Preferred)

No response

Expected Behavior

Drag and drop works when setting placement in tippyOptions to any accepted value

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@abdobargush abdobargush 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 Dec 12, 2024
@abdobargush abdobargush changed the title [PRO]: @tiptap-pro/extension-drag-handle-react not workin when setting tippyOptions placement [PRO]: @tiptap-pro/extension-drag-handle-react not working when setting tippyOptions placement Dec 12, 2024
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
None yet
Development

No branches or pull requests

1 participant