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

Droppable container position not updated during drag event. #804

Open
patricehotz opened this issue Jul 4, 2024 · 0 comments
Open

Droppable container position not updated during drag event. #804

patricehotz opened this issue Jul 4, 2024 · 0 comments

Comments

@patricehotz
Copy link

Expected behavior

When the position of the droppable container changes during drag event, it still works as intended.

Actual behavior

When the posistion of the droppable container changes during a drag event, hello-pangea still thinks the container is at previous posistion and thus does not work correctly.

Steps to reproduce

In my case i use multiple accordions with drag drop lists inside of it. I also implemented, that during a drag event, i can hover over a closed accordion which results in it opening up. But because it was not open on drag start, it does not work.

Suggested solution?

I think that in the background it is managed with x y position of the droppable container and this position does not get updated. probably could be fixed with a ref or something that updates the position.

What version of React are you using?

^18.2.0

What version of @hello-pangea/dnd are you running?

16.5.0

What browser are you using?

chrome

Demo

sadge.webm
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