You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
Every time the item is moved from one place to another I need to update it's model. Instead I am getting an error (different in different browsers)
FF:
If you open a debugger and add a breakpoint to the errorgenus line, you can see that ui.item.scope() is undefined. Further inspection will reveal that jquery-ui calls the stop callback of the source sortable and the recieve callback of the target sortable.
At the time stop fires on the source sortable, the scope of the element is already destroyed, since the element was just removed from the sortable.
Read the jquery-ui docs
=> place your code in the recieve or update callback of the target sortable.
Take a look at canceling drag between connected lists drops item #107 for more info on the order that jquery-ui executes the callbacks in case of a cross-sortable sorting.
Here is what I am trying to do:
http://codepen.io/anon/pen/BrqCv
Every time the item is moved from one place to another I need to update it's model. Instead I am getting an error (different in different browsers)
FF:
Is it even possible? How?
The text was updated successfully, but these errors were encountered: