Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Items can be moved to the end of container even if options.accepts returns false #136

Closed
bikutaa opened this issue May 2, 2017 · 3 comments
Assignees
Labels

Comments

@bikutaa
Copy link

bikutaa commented May 2, 2017

Seems like an item can be moved to the end of a container even if options.accepts returns false.

e.g. Items should be not able to be moved anywhere with:

$scope.dragularOptions = {
  accepts: function() {
    return false;
  }
};

But it can be moved to the last position.

Example link: http://jsfiddle.net/bikutaa/21k4hyzL

@luckylooke luckylooke self-assigned this May 2, 2017
@luckylooke luckylooke added the bug label May 2, 2017
@luckylooke
Copy link
Owner

Thanks for reporting and reproducing the issue, I will fix it soon.

@bikutaa
Copy link
Author

bikutaa commented May 2, 2017

Awesome, thanks for the quick reply.
Looking forward to your fix, need it for a big project.

@luckylooke
Copy link
Owner

Fixed in latest version 4.4.1, here is fiddle with fix http://jsfiddle.net/21k4hyzL/4/
Thanks for cooperation ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants