You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-grid-layout

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-grid-layout - npm Package Versions

2345
11

1.5.2

Diff
s
strml
published 1.5.2 •

Changelog

Source

1.5.2 (Jun 25, 2025)

  • Fix calcXY when isBounded=true moving items incorrectly. Likely related to #2059. Thanks @wanpan11. #2102
s
strml
published 1.5.1 •

Changelog

Source

1.5.1 (Mar 11, 2025)

  • Fix for React 18: wrap state calls in flushSync. Thanks @ashharrison90. #2043
s
strml
published 1.5.0 •

Changelog

Source

1.5.0 (Oct 9, 2024)

  • Fix calcXY moving grid items slightly above and to the left of where they should be. Thanks @MaxMusing. #2059
  • Change onBreakpointChange/onLayoutChange event order. onBreakpointChange now fires first. This should make managing responsive layouts easier, as you can set the current breakpoint in storage, then save the new layout to it.
s
strml
published 1.4.4 •

Changelog

Source

1.4.4 (Nov 28, 2023)

Bugfixes

  • Fix position logic when draggable item is dragged into the grid. We no longer use the deprecated / non-standard e.nativeEvent.layer{X,Y} properties. #1915
  • Fix drag values according to containerPadding. Previously, when dragging an item, the intuited position within the grid was not modified by containerPadding, causing it to off by that value. On most grids, this is only set to [10, 10], so this may not have been noticeable, but for higher values it was very obvious. Thanks @hywlss9. #1323
  • Various lint/dependency fixes.
s
strml
published 1.4.3 •

Changelog

Source

1.4.3 (Nov 8, 2023)

Bugfixes

  • Set activeDrag in onDragStart. Fixes issues where, if no drag is performed, the onDragStop handler would error out and the drag would freeze. #1923
    • THis fixes some broader issues with React 18 but testing library support is still not complete.
s
strml
published 1.4.2 •

Changelog

Source

1.4.2 (Sep 22, 2023)

Bugfixes

  • Resizing in every directionnow obeys preventCollision restrictions #1937
s
strml
published 1.4.1 •

Changelog

Source

1.4.1 (Sep 12, 2023)

Bugfixes

  • Fixed bug where height/width could not be resized if h = 0 or w = 0 and 0 containerPadding. #1931
  • Revert fast-equals to @4. Fixes incompatibility with Create-React-App@5.
s
strml
published 1.4.0 •

Changelog

Source

1.4.0 (Sep 11, 2023)

Hey, it's been a long time! Taking a year and a half off is a pretty "open-source" thing to do, thanks for bearing with me.

New Features

  • Grid items can now be resized left and up! Thanks to @ludovic and @dseif for all the hard work they did on this. #1917
    • To use, specify resizeHandles directions on your <GridItem>s. See the example for more on how to do this.
    • See also the demo.
  • <WidthProvider> now uses a ResizeObserver instead of hooking into the window's 'resize' event. #1839
    • This should not be breaking for any users but introduces a new dependency, resize-observer-polyfill. It will not be imported unless you use <WidthProvider>.

Bugfixes

  • Fixed horizontal compact not always moving grid elements as far left as possible. #1822
  • Fixed a bug when allowOverlap={true} and compactType={null}, where collisions would still be processed. #1782
  • Fixed onResizeStop and onDragStop callbacks not returning updated layout. #1613
  • An item will now rerender when data-grid props change. #718
  • Corrected draggableHandle configuration in static elements example #1826

Internal Changes

  • Various dependency upgrades and upgraded tests.
  • Removed long-deprecated _grid property.
  • Various doc updates.
s
strml
published 1.3.4 •

Changelog

Source

1.3.4 (Feb 21, 2022)

Bugfixes

  • Add e.stopPropagation() on drag events to better support nested grids. Thanks @rogerfar #1494.

Internal Changes

  • Various dependency upgrades.
s
strml
published 1.3.3 •

Changelog

Source

1.3.3 (Jan 24, 2022)

This was a quick release to improve package size and dependency use. Thanks @salvoravida #1655

Bugfixes

  • Removed coverage/ folder from npm package to save size
  • Moved eslint parser to devDependencies
2345
11