Skip to content

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

Merged
adumesny merged 1 commit into
gridstack:developfrom
adumesny:develop
Mar 11, 2020
Merged

destroy drag&drop when removing node(s)#1209
adumesny merged 1 commit into
gridstack:developfrom
adumesny:develop

Conversation

@adumesny

Copy link
Copy Markdown
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