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

Problem with 'dragged' function and receive event. #57

Closed
shengkai opened this issue Jun 27, 2013 · 1 comment
Closed

Problem with 'dragged' function and receive event. #57

shengkai opened this issue Jun 27, 2013 · 1 comment

Comments

@shengkai
Copy link

Hi, I'm a developer using this lib.

I had to use 'dragged' function to manipulate the object before dropping to the other sortable list. However:
First, in receive event function, 'dragItem = dataGet(ui.item[0], DRAGKEY)' doesn't get anything, so later code is ignored. I had to use 'dragItem = dataGet(ui.item[0], ITEMKEY)' to get the object.

Second, in update event function, 'item = dataGet(el, ITEMKEY) || dragItem;' ignores dragItem when dataGet(el, ITEMKEY) is available. I had to use 'item = dragItem || dataGet(el, ITEMKEY);' to use manipulated object.

Could someone let me know why I am having this issue? Or is there something I missed? Thanks!

@shengkai
Copy link
Author

Apparently it can be done by using beforeMove. It is not an issue. Thank you for your great lib!

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