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

Drop event triggered outside intended dropzone #1048

Open
imReCoder opened this issue Jul 27, 2024 · 0 comments
Open

Drop event triggered outside intended dropzone #1048

imReCoder opened this issue Jul 27, 2024 · 0 comments

Comments

@imReCoder
Copy link

I am experiencing an issue where the drop event is being triggered within an iframe dropzone even when the draggable element is dropped outside the iframe. This behavior occurs when the sidebar (containing the draggable element) is positioned to the left of the iframe. When the sidebar is moved to the right, the issue resolves itself.

Steps to Reproduce:

Create a container with a sidebar and an iframe side by side.
Add a draggable element to the sidebar.
Add a dropzone within the iframe.
Start dragging the element from the sidebar.
Drop the element outside the iframe.

Expected Behavior:
The drop event should only be triggered within the intended dropzone inside the iframe.

Actual Behavior:
The drop event is being triggered within the iframe dropzone even when the draggable element is dropped outside the iframe.

Code Example:
CodePen Example

Additional Information:
This issue occurs when the sidebar is positioned to the left of the iframe. Moving the sidebar to the right resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant