8000 Nested grids: TypeError: e.currentTarget is null when using a touch device · Issue #2887 · gridstack/gridstack.js · GitHub
[go: up one dir, main page]

Skip to content
Nested grids: TypeError: e.currentTarget is null when using a touch device #2887
Closed
@anatter

Description

@anatter

Subject of the issue

Widgets can not be moved with nested grids in the nested grid demo https://gridstackjs.com/demo/nested.html
when using any touch device, mobile phone or laptop with touchscreen

Uncaught TypeError: e.currentTarget is null
    _mouseUp dd-draggable.ts:228
    destroy dd-draggable.ts:120
    cleanDraggable dd-element.ts:61
    draggable dd-gridstack.ts:74
    draggable dd-gridstack.ts:70
    _removeDD gridstack.ts:2077
    _setupAcceptWidget gridstack.ts:2314
    on dd-gridstack.ts:138
    triggerEvent dd-base-impl.ts:40
    drop dd-droppable.ts:145
    _mouseUp dd-draggable.ts:253
    _mouseDown dd-draggable.ts:151
    enable dd-draggable.ts:94
    enable dd-draggable.ts:93
    v dd-draggable.ts:79
    setupDraggable dd-element.ts:52
    draggable dd-gridstack.ts:79
    draggable dd-gridstack.ts:70
    _prepareDragDropByNode gridstack.ts:2465
    _prepareElement gridstack.ts:1698
    makeWidget gridstack.ts:1088
    addWidget gridstack.ts:492
    load gridstack.ts:774
    load gridstack.ts:745
    x gridstack.ts:432
    init gridstack.ts:112
    addGrid gridstack.ts:172
    makeSubGrid gridstack.ts:570
    makeWidget gridstack.ts:1095
    addWidget gridstack.ts:492
    load gridstack.ts:774
    load gridstack.ts:745
    x gridstack.ts:432
    init gridstack.ts:112
    addGrid gridstack.ts:172
    <anonymous> nested.html:80

Your environment

  • version of gridstack.js - v11
  • which browser/OS: Any browser, Windows 11,

Steps to reproduce

Expected behavior

  • Widgets should be movable

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

      0