livewire-sortablejs
livewire-sortablejs copied to clipboard
Support for Sortablejs plugins
Multidrag: 🚫
- Does not work when the draggable items contain Livewire component(s).
- Sortablejs removes all elements except one from the DOM when dragging multiple elements. When the dragging ends, Sortablejs re-adds them to the DOM. The problem is that Livewire does not detect the re-added Livewire components inside the dragged elements.
- see discussion: https://github.com/livewire/livewire/discussions/7111)
- Sometimes Sortablejs moves other elements (even from other groups) after finishing dragging a couple of items. Those other elements were not selected to be dragged and should stay in their original position.
Swap: ✅
- Works correctly, even if the draggable items contain Livewire component(s).
Scroll: 🤔
- Works correctly but throws
uncaught component already registerederror when draggable items contain Livewire component(s).
RevertOnSpill: ✅
- Works correctly, even if the draggable items contain Livewire component(s)
RemoveOnSpill: 🚫
- Does not work when the draggable items contain Livewire component(s).
- Livewire throws a
Component not founderror when the dragged element has been removed from the DOM by Sortablejs.
- Livewire throws a