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

Fast drags result in stale item #863

Open
chrisvxd opened this issue Jan 30, 2025 · 1 comment
Open

Fast drags result in stale item #863

chrisvxd opened this issue Jan 30, 2025 · 1 comment
Labels
ready Assumed ready enough to start type: bug 🐛

Comments

@chrisvxd
Copy link
Member

chrisvxd commented Jan 30, 2025

Fast drag-and-drop operations for new items can result in a state item being present in the DropZone.

Likely an upstream dnd-kit issue.

Steps to reproduce

  1. Visit https://demo.puckeditor.com/edit
  2. Quickly drag a new item from the component list to the canvas
  3. Repeat 2 until bug appears

What happened

If the timing is right, the dragged item gets stuck in the canvas.

Kapture.2025-01-30.at.09.57.28.mp4

What I expected to happen

For the drag to either abort or complete.

@chrisvxd chrisvxd added ready Assumed ready enough to start type: bug 🐛 labels Jan 30, 2025
@rv-bparise
Copy link

This also happens if the user wants to cancel the drop by pressing esc key while dragging or dragging the component out of the preview window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Assumed ready enough to start type: bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants