react-grid-layout v1.3.0 Release Notes
Release Date: 2021-08-27 // over 2 years ago-
๐ New Features
allowOverlap
prop, whentrue
, allows overlapping grid items. #1470- โ Add
onDropDragOver
callback. #1395- Use this callback to dynamically adjust the
droppingItem
based on what is being dragged over. Returnw
andh
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.
- Use this callback to dynamically adjust the
๐ Bugfixes
- โ Remove sorting when
compactType
isnull
. #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.