react-grid-layout icon indicating copy to clipboard operation
react-grid-layout copied to clipboard

"moved" property is empty in onDragStop when using compactType null

Open flashtheman opened this issue 6 years ago • 3 comments

There are 4 possible configurations in regards to compactType:

  • vertical
  • horizontal
  • null
  • undefined

When using null as compactType it means that you can move items around freely.

The bug I want to report, is that when using onDragStop, the "moved" property of the returned object, shows always false for all items. For vertical and horizontal the moved property is set correctly.

Please the console output of this sandbox after having dragged an item: https://codesandbox.io/s/xenodochial-bartik-sntuu?file=/src/ShowcaseLayout.js

flashtheman avatar May 18 '20 11:05 flashtheman

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days

github-actions[bot] avatar Jun 17 '20 12:06 github-actions[bot]

How do I remove the stale tag?

flashtheman avatar Jun 19 '20 16:06 flashtheman

Seems like null as compactType setting is in no one's interest..

arcavid avatar Sep 28 '21 10:09 arcavid