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
I noticed that there is no way to add and remove nativesortable's functionality "easily" on the fly - the only way I have been able to remove the functionality is by cloning the element I added it to, and replacing the original with the clone (removes all listeners). I believe this is because the functions attached to the listeners are private, and are treated as anonymous by the browser - so I have no way to remove them directly.
There might be something I'm missing, though. Is there any way to add this to an element and remove it without recreating the element?
The text was updated successfully, but these errors were encountered:
You are right, there isn't a way to destroy the functionality right now. If someone would be interested in adding this, I'd accept a PR. We could make nativesortable return an object with a destroy function that cleans up after itself.
I noticed that there is no way to add and remove nativesortable's functionality "easily" on the fly - the only way I have been able to remove the functionality is by cloning the element I added it to, and replacing the original with the clone (removes all listeners). I believe this is because the functions attached to the listeners are private, and are treated as anonymous by the browser - so I have no way to remove them directly.
There might be something I'm missing, though. Is there any way to add this to an element and remove it without recreating the element?
The text was updated successfully, but these errors were encountered: