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

[Bug]: React DND broken when used within a NodeViewWrapper #5018

Closed
1 of 2 tasks
johnsmithecon opened this issue Mar 29, 2024 · 2 comments
Closed
1 of 2 tasks

[Bug]: React DND broken when used within a NodeViewWrapper #5018

johnsmithecon opened this issue Mar 29, 2024 · 2 comments
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@johnsmithecon
Copy link

Which packages did you experience the bug in?

@tiptap/react

What Tiptap version are you using?

2.2.4

What’s the bug you are facing?

<NodeViewWrapper className="border p-4 shadow-lg rounded-lg bg-white" style={{ height: "500px" }} > <MyComponent /> </NodeViewWrapper>

What browser are you using?

Chrome

Code example

No response

What did you expect to happen?

When placing my custom react component (which includes react-dnd functionality) within tiptap, specifically a NodeViewWrapper, I expect the items to be draggable using react-dnd.

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@johnsmithecon johnsmithecon added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Mar 29, 2024
@github-project-automation github-project-automation bot moved this to Triage open in Tiptap Mar 29, 2024
@Pruxis
Copy link
Contributor

Pruxis commented May 23, 2024

We had the same, I used https://dndkit.com. However it's having terrible side effects sometimes, I'd recommend to use https://github.com/atlassian/pragmatic-drag-and-drop

@github-project-automation github-project-automation bot moved this to Needs Triage in Tiptap: Issues Dec 4, 2024
@nperez0111
Copy link

This is released with version: 2.11.0

@github-project-automation github-project-automation bot moved this from Needs Triage to Closed in Tiptap: Issues Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
Archived in project
Status: Triage open
Development

No branches or pull requests

3 participants