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
Initialising a new grid (GridStack.init()) on the DOM of the destroyed one (grid.destroy(false)) should work the same way as initialising a "fresh" grid.
Hey thanks,
did this ever worked before ?
I assume this is a valid user case - what are you trying to do ?
FYI you can disable grid drag/resize by making the grid fixed as well instead of 'destroying it' and re-creating, in case you didn't know.
simple possible workaround for now (there might be more issues as I discovered stuff we didn't do during destroy(false) is to call grid.enable(); after you init the second time.
Activity
adumesny commentedon Mar 10, 2020
Hey thanks,
did this ever worked before ?
I assume this is a valid user case - what are you trying to do ?
FYI you can disable grid drag/resize by making the grid fixed as well instead of 'destroying it' and re-creating, in case you didn't know.
adumesny commentedon Mar 11, 2020
simple possible workaround for now (there might be more issues as I discovered stuff we didn't do during
destroy(false)is to callgrid.enable();after you init the second time.still a bug that it doesn't work out of the box.
destroy drag&drop when removing node(s)
destroy drag&drop when removing node(s)
adumesny commentedon Mar 11, 2020
fixed in next release.