react-grid-layout v1.3.0 Release Notes

Release Date: 2021-08-27 // over 2 years ago
  • ๐Ÿ†• New Features

    • allowOverlap prop, when true, allows overlapping grid items. #1470
    • โž• Add onDropDragOver callback. #1395
      • Use this callback to dynamically adjust the droppingItem based on what is being dragged over. Return w and h to adjust the item. It is then spread into the dropping placeholder.
      • This callback has the type:
      • onDragOver: (e: DragOverEvent) => { w: number, h: number } | false;
      • Return false to short-circuit the dragover.

    ๐Ÿ›  Bugfixes

    • โœ‚ Remove sorting when compactType is null. #1474
    • โฌ‡๏ธ Droppable fixes for Chrome behavior. #1442 #1448
    • ๐Ÿ‘ Allow null children as a convenience so that inline expressions don't break the library. #1296
    • โฌ†๏ธ Various dependency upgrades.

    ๐Ÿ“š Documentation

    • โž• Add docs on using custom components as grid children.
    • Note required class on resizable handles for proper styling.