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

option to opt-out of children invalidation #577

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sherbrow
Copy link

@sherbrow sherbrow commented Aug 3, 2018

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

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)
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

Successfully merging this pull request may close these issues.

None yet

1 participant