From 4e5dddcbecc2cd8829da3f1b26a7f39d5496461a Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Wed, 11 Mar 2020 16:09:54 -0700 Subject: [PATCH] destroy drag&drop when removing node(s) * 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 #1204 --- demo/float.html | 7 ++++++- doc/CHANGES.md | 1 + src/gridstack.jQueryUI.js | 4 ++-- src/gridstack.js | 20 ++++++++++++-------- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/demo/float.html b/demo/float.html index dbc66085b..8e20ed50a 100644 --- a/demo/float.html +++ b/demo/float.html @@ -24,10 +24,15 @@

Float grid demo

-