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

destroy drag&drop when removing node(s) #1209

Merged
merged 1 commit into from
Mar 11, 2020
Merged

Conversation

adumesny
Copy link
Member

Description

  • calling grid.destroy(false) will clean things and let you init() again.
  • removing an item will now nuke jquery drag&drop using draggable('destroy') instead of just disabling.
    This also removes all JQ styles added if you keep DOM element around.
  • also removes extra grid style left behind
  • fix for init after destroy(false) doesn't work #1204

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* calling `grid.destroy(false)` will clean things and let you init() again.
* removing an item will now nuke  jquery drag&drop using `draggable('destroy')` instead of just disabling.
This also removes all JQ styles added if you keep DOM element around.
* also removes extra grid style left behind
* fix for gridstack#1204
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

Successfully merging this pull request may close these issues.

1 participant