Skip to content

[Bug] Cancelling when dragging into a subgrid removes the widget instead of restoring the origin state #3154

@BartVanGestel

Description

@BartVanGestel

Subject of the issue

When dragging a widget from 1 grid into another and you press the cancel key (escape); the widget just dissapears. This is also the case in the nested grid demo: https://gridstackjs.com/demo/nested.html#

Your environment

  • Currently running gridstack: 12.2.2 in an Angular Project

Steps to reproduce

https://gridstackjs.com/demo/nested.html#

  • Grab widget with the number 2 on it and drag it to another subgrid
  • Press the escape key

Expected behavior

When pressing the escape key the widget should return to its original location instead of disapearing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions