Skip to content

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