Skip to content

Drag and drop issue in nested grids #1919

@albertofilippi

Description

@albertofilippi

Describe the bug

Hello everyone, I'm having an issue with using nested grids.
Within the screen, I place grids called "Containers". Each of these contains another grid where it's possible to position elements called "Items". In the first placed Container, when I perform a drag and drop of the Items inside it, the elements are positioned correctly. In the other Containers, however, the element is always placed in the rightmost column of the grid.

Your Example Website or App

https://codesandbox.io/p/sandbox/thirsty-david-yg9j4x

Steps to Reproduce the Bug or Issue

  1. Drag and drop in nested grids

Expected behavior

The Items are inserted into the grid at the user's chosen position, not in the last column.

react-grid-layout library version

1.3.4

Operating System Version

Windows

Browser

Chrome

Additional context

No response

Screenshots or Videos

bug_nested_grids.mp4

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