Skip to content

init after destroy(false) doesn't work #1204

Closed
@ghost

Description

Subject of the issue

A grid initialised on the DOM left by grid.destroy(false) doesn't seem to work: widgets are not draggable.

Your environment

  • version of gridstack.js 1.1.0
  • which browser and its version Chrome Version 80.0.3987.132 (Official Build) (64-bit)

Steps to reproduce

grid = GridStack.init() // works well
grid.destroy(false)
grid = GridStack.init() // widgets are no longer draggable

https://jsfiddle.net/n4f2dpv5/

Expected behaviour

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions