bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
21.89k stars 1.97k forks source link

option to opt-out of children invalidation #577

Open sherbrow opened 5 years ago

sherbrow commented 5 years ago

the invalid method option invalidates children by default, as a consequence from allowing handles (if a parent is invalid, the handle and in-between elements should not be dragged) but when nesting one might need to invalidate only up to one parent (keep validating from the handle to the item but not further in the draggable hierarchy) TODO : use a complex return value to differentiate handle and draggable element when nesting (event+propagation)

This was a change that I prepared years ago, to do some nesting as seen in #31 My changes are working on that example : http://www.sherbrow.fr/labs/flow1.html