GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Grid height disappears when quickly moving the only grid-stack-item — likely due to dropout removing the node incorrectly. · Issue #3178 · gridstack/gridstack.js

Grid height disappears when quickly moving the only grid-stack-item — likely due to dropout removing the node incorrectly. #3178

New issue
Copy link
New issue
Copy link
Open
Open
Grid height disappears when quickly moving the only grid-stack-item — likely due to dropout removing the node incorrectly.#3178
Copy link

Description

@opendesign-os
opendesign-os
opened on Nov 5, 2025
Issue body actions

Subject of the issue

Grid height disappears when quickly moving the only grid-stack-item — likely due to dropout removing the node incorrectly.

environment

gridstack.js version: 12.3.3

Node: 24.10.0

pnpm: 10.20.0

OS: Windows

Steps to reproduce

Create a GridStack layout with only one grid-stack-item.

Quickly drag and move that item within the same grid area.

Observe that sometimes the grid’s height collapses (disappears).

After investigation, it appears that the issue occurs because when the node is temporarily removed, grid.getRow() becomes 0.
This seems to be triggered by the dropout event logic — it removes the node when detecting that node.grid and the current grid instance are the same.

Expected behavior

I think this behavior might not be correct.
The node should only be removed if its gridstack instance is different from the current dragging grid.
If both are the same instance, the node should remain in the grid and not be removed during dropout.

Image Image Image
Reacted by WSD

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.