stimulus-sortable
stimulus-sortable copied to clipboard
A Stimulus controller to reorder lists with drag-and-drop.
Some libraries like the `ranked-model` gem expect a zero-based index. This pull request adds a configurable offset to make this library compatible without breaking backwards compatibility.
Hi, I started to play with this, and I stumbled on missing `filter` and `group` support. Filter is not so needed, I was for my case able to solve that....
nested sortable compability ``` 1 2 3 3.1 3.2 3.3 4 4.1 4.2 4.3 4.3.1 4.3.2 4.3.3 ```
Code pen demonstrating the bug is fixed: https://codepen.io/James-St-Pierre/pen/ZEZZqew Closes https://github.com/stimulus-components/stimulus-sortable/issues/16 (Lots of good information here) https://github.com/stimulus-components/stimulus-sortable/issues/8 https://github.com/stimulus-components/stimulus-components/issues/60 **Explanation:** When you have a draggable list that have children with draggable list,...