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

Issue with Accepts callback #18

Open
sajumani opened this issue Aug 26, 2016 · 2 comments
Open

Issue with Accepts callback #18

sajumani opened this issue Aug 26, 2016 · 2 comments

Comments

@sajumani
Copy link

Hi,

I need to create Action once drop completed... but accept callback fires ,when move starts and passing multiple unwanted updates to server

let options = {

      accepts: function (el, target, source, sibling) {
        console.log(el, source, target, sibling); // This fires when moving 
        return true; 
      }

  };
@sajumani
Copy link
Author

Mr.Bevacqua ???

Any Idea ???

@Nolski
Copy link

Nolski commented Sep 22, 2016

@sajumani you should look into the drop event.

(this is using ES2015)

Dragula([...])
    .on('drop', (el, target, source, sibling) => {
       // Create Action here
    });

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

No branches or pull requests

2 participants