-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
How can I remove out some item? #1459
Comments
@big-tutu Something like this: Sortable.create(el, {
onEnd(evt) {
var target = evt.originalEvent.target;
if (el !== target && !el.contains(target)) {
// remove `target`
}
}
}); |
A feature to solve this could be #1465 |
Now you can use the new Sortable(el, {
removeOnSpill: true
}); |
removeOnSpill: true is good works in computer but does not work in my iphone may be same to all mobiles ? can some one help ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem: There are tow groups A and B, I drag an element from group A to some place not group B, where can't accept this item. Because I want remove it instead back it's old position.
I used Vue-draggable.
The text was updated successfully, but these errors were encountered: