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

Drag doesn't work when using saved data. #481

Open
Roshan54321 opened this issue May 13, 2024 · 5 comments · May be fixed by #598
Open

Drag doesn't work when using saved data. #481

Roshan54321 opened this issue May 13, 2024 · 5 comments · May be fixed by #598

Comments

@Roshan54321
Copy link

Roshan54321 commented May 13, 2024

Problem: When new components are made, drag works. But just as I save the data and reload the page, the components can't be dragged. Add a new component right there, the drag again works.

Console:
image

Root structure is similar as that of puck's demo.

React: 17.0.1
Puck: 0.14.2

@chrisvxd
Copy link
Member

Hi @Roshan54321 - can you share a codepen or similar?

@Roshan54321
Copy link
Author

Hi @Roshan54321 - can you share a codepen or similar?

I can't recreate it. I definitely can't clone the whole thing for personal reasons. Can you tell me what can be the possible reason for the warnings above?

I'll try to recreate it further.

@chrisvxd
Copy link
Member

chrisvxd commented Jun 7, 2024

I'm not entirely sure, which is why I need the codepen 😅

The drag-and-drop library is failing to find the draggable items, which is possibly because they're not mounting correctly.

@k0litha
Copy link

k0litha commented Oct 30, 2024

Got the same issue. After saving and refreshing the page, components in the preview can't be dragged until I try to add a new component. This happens when using a custom interface (ex: Puck.preview)

@chrisvxd
Copy link
Member

chrisvxd commented Nov 7, 2024

I expect this to be closed as part of #556

@chrisvxd chrisvxd self-assigned this Nov 7, 2024
@chrisvxd chrisvxd linked a pull request Nov 7, 2024 that will close this issue
71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants