rlemaigre / Easy-DnD

A drag and drop implementation for Vue.js 2 and 3 https://codesandbox.io/s/easy-dnd-demo-9mbij https://codesandbox.io/s/easy-dnd-demo-2-xnqbz
MIT License
380 stars 52 forks source link

When Easy-DnD is in a dialog, animations only play the first time #135

Closed matthew-dean closed 1 year ago

matthew-dean commented 1 year ago

If needed, I can try to (maybe?) get a repro together. Basically, I'm using this component with Vue Final Modal.

Strangely, if I close / re-open my modal (which has draggable items), the drag operations still work, but the drag animations no longer do. Is it possible that this component injects / manages certain globals or global references which may no longer exist? Any reason why animations would stop working?

matthew-dean commented 1 year ago

Ah, okay, so it appears what's happening is that the "ghost" layer that dynamically renders is relying on the initial ordering of the modal, so at a certain point, it starts being behind the modal?

matthew-dean commented 1 year ago

Oop, looks like a duplicate of this: https://github.com/rlemaigre/Easy-DnD/issues/31