Skip to content

Issue using display: grid with grid-gap to layout <Draggable/>s #352

Open
@joehdodd

Description

@joehdodd

Bug or feature request?

bug

Expected behavior

Items in a <Draggable/> not being dragged would maintain position after an item that is being dragged is released/dropped. (E.G. using grid-gap: 20px, sibling items would not slightly reposition when dragged sibling is dropped)

Actual behavior

Items in a <Draggable/> shuffle/shift slightly to one side when an item being dragged is dropped on a <Droppable/> when using grid-gap.

Steps to reproduce

Use display: grid && grid-gap to layout and space <Draggable/> items, rather than using margin rules to space items.

Browser version

FireFox Developer Edition 59.0b12

Demo

https://codesandbox.io/s/ojkm1qjnjq
dnd

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