You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't drop on the parent grid when dragging in a new widget from a source inside a grid item/widget #3448
If a drag-in source is placed inside a grid widget, dragging from it doesn't work properly. The widget can't be dropped on the root(parent) grid, even though that grid has acceptWidgets: true. No placeholder appears and releasing the mouse to drop does nothing.
Two workarounds make the drop work:
Drag the item outside the parent grid, then drag it back in.
Drag the item into a nested sub-grid first then move it back onto the parent grid.
After either one the parent grid shows the placeholder and accepts the drop.
Your environment
version of gridstack.js: v14.0.0
which browser/OS: Chrome & WSL
Steps to reproduce
Use the attached nested.html(modified from demo/nested.html) setup and add a drag-in source as the content of a root-grid widget
Start dragging "Drag new widget" inside the widget of the root grid.
Move it over an empty area of the root grid and release.
Nothing is dropped and no placeholder appears.
Start again, but move the cursor outside the root grid or over nested grid before coming back to the root grid.
Now the drop works.
See attached video
drag-issue2.mp4
Expected behavior
The root grid should show the placeholder and accept the drop as soon as the dragged item is over it. You shouldn't have to leave the grid or pass over a sub-grid first.
Activity
adumesny commentedon Nov 4, 2026
real bug, but my shape-based change already fixes it in #3451 #3454 , so PR #3449 isn't needed. It also conflicts with my changes.