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

use fallbackParent option instead of fallbackOnBody #2245

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

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

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.

2 participants