1.5.0
๐ Bug Fixes
- Fix
calcXYcalculation - Fixed an issue where grid items were being positioned slightly above and to the left of where they should be during drag operations. Thanks @MaxMusing! #2059
โจ Improvements
-
Changed
onBreakpointChange/onLayoutChangeevent order -onBreakpointChangenow fires beforeonLayoutChange. This makes managing responsive layouts easier, as you can set the current breakpoint in storage first, then save the new layout to it. Thanks @EliMiX! #921// Now you can reliably save layouts per breakpoint: onBreakpointChange={(newBreakpoint) => { setCurrentBreakpoint(newBreakpoint); }} onLayoutChange={(layout, allLayouts) => { // currentBreakpoint is already updated here saveLayoutForBreakpoint(currentBreakpoint, layout); }}
๐ง Internal Changes
New Contributors
- @EliMiX made their first contribution in #921
- @MaxMusing made their first contribution in #2059
Full Changelog: https://github.com/react-grid-layout/react-grid-layout/compare/1.4.4...1.5.0