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

Get element selected during drag before drop #153

Open
namlq93 opened this issue Jul 19, 2019 · 1 comment
Open

Get element selected during drag before drop #153

namlq93 opened this issue Jul 19, 2019 · 1 comment

Comments

@namlq93
Copy link

namlq93 commented Jul 19, 2019

Can not get element selected during drag before drop??
I tried event ss-arranged, but it only gets the parent element of the selected element.. Is the library unable to do that?

I tried the code below, but it won't work when I drag the item from one box to another the first time. From the second time it works. Seems like it conflicts something with the library ??

$(".item").draggable ({
          drag: function (event, ui) {
              console.log($(this));
          }
  });

@namlq93
Copy link
Author

namlq93 commented Jul 19, 2019

I have found solution:

$( ".item" ).on( "drag", function( event, ui ) {
        console.log($(this));
    } );

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

1 participant