Skip to content

Unable to resize the nested container/grid in 2.0.0 #1361

@marshmeloo

Description

@marshmeloo

Subject of the issue

Unable to resize the nested container/grid in 2.0.0

Your environment

  • version v2.0.0 of gridstack.js
  • Chrome (Version 85.0.4183.102), Firefox (76.0.1 (64-bit)

Steps to reproduce

open nested grids demo https://gridstackjs.com/demo/nested.html
try to resize the nested 1 or nested 2 green container/grid
https://drive.google.com/file/d/1mR809jQL8zjwjYpgx0dCz-O7JXCuv6eQ/view

Expected behaviour

It should resize

Actual behaviour

resize handler hang with below error in the console
Uncaught TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.
at HTMLDivElement.s (gridstack.ts:1269)
at e..._trigger (jquery-ui.js:699)
at e..._propagate (jquery-ui.js:3604)
at e..._propagate (jquery-ui.js:146)
at e..._mouseStart (jquery-ui.js:3237)
at e..._mouseStart (jquery-ui.js:146)
at e..._mouseMove (jquery-ui.js:1012)
at e..._mouseMove (jquery-ui.js:146)
at HTMLDocument.s._mouseCapture._mouseDistanceMet._mouseDelayMet._mouseMoveDelegate (jquery-ui.js:957)
at HTMLDocument.dispatch (jquery.js:5429)

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