Skip to content

Conversation

spassvogel
Copy link

@spassvogel spassvogel commented Jan 10, 2023

This PR introduces a new option parameter fallbackParent. It allows you to be more flexible with determining where the fallback ghost element gets appended. You can either pass a DOM node or a function that retrieves the dom node.

Right now you can choose fallbackOnBody and it will use the body, but with this change you have a lot more power in determining what the parent needs to be of the fallback ghost. It's not always feasible to append things to the body.

The fallbackOnBody is still supported, but marked as obsolete and removed from the docs.

@spassvogel spassvogel changed the title use getFallbackParent option instead of fallbackOnBody use fallbackParent option instead of fallbackOnBody Jan 23, 2023
lofcz added a commit to lofcz/Sortable that referenced this pull request Jan 31, 2024
@IF-tiger
Copy link

More flexibility and Controllable

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants