react-grid-layout v1.0.0 Release Notes
Release Date: 2020-07-20 // almost 4 years ago-
๐ React-Grid-Layout has been in
0.x
status for far too long. With the addition of some new features in this version and a breaking change, I thought it was time to move to a stable semver.๐ฅ Breaking Changes
onDrop
callback now has a form more consistent with other callbacks.- Previous type:
(elemParams: { x: number, y: number, w: number, h: number, e: Event }) => void
- New type:
(layout: Layout, item: ?LayoutItem, e: Event) => void
- Thanks @ceberhar #1169
- Previous type:
- โฌ๏ธ Dropping Node 8 compatibility and testing due to devDep incompatibilities
๐ New Features
- โ Add
innerRef: React.Ref<'div'>
prop to expose a ref for the grid layout's outer div. Thanks @paul-sachs #1176 - โ Add
isBounded
property to prevent dragging items outside of the grid. Thanks @artembykov #1248
๐ Bugfixes
- ๐ Fix grid items stuck using percentages on first render. Thanks @rhbg #1246