Socket
Socket
Sign inDemoInstall

react-grid-layout

Package Overview
Dependencies
13
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.2 to 1.4.3

13

build/ReactGridLayout.js

@@ -100,5 +100,16 @@ "use strict";

if (!l) return;
// Create placeholder (display only)
const placeholder = {
w: l.w,
h: l.h,
x: l.x,
y: l.y,
placeholder: true,
i: i
};
this.setState({
oldDragItem: (0, _utils.cloneLayoutItem)(l),
oldLayout: layout
oldLayout: layout,
activeDrag: placeholder
});

@@ -105,0 +116,0 @@ return this.props.onDragStart(layout, l, l, null, e, node);

# Changelog
## 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](https://github.com/react-grid-layout/react-grid-layout/pull/1923)
- THis fixes some broader issues with React 18 but testing library support is still not complete.
## 1.4.2 (Sep 22, 2023)

@@ -4,0 +11,0 @@

@@ -254,6 +254,17 @@ // @flow

if (!l) return;
// Create placeholder (display only)
const placeholder = {
w: l.w,
h: l.h,
x: l.x,
y: l.y,
placeholder: true,
i: i
};
this.setState({
oldDragItem: cloneLayoutItem(l),
oldLayout: layout
oldLayout: layout,
activeDrag: placeholder
});

@@ -260,0 +271,0 @@

2

package.json
{
"name": "react-grid-layout",
"version": "1.4.2",
"version": "1.4.3",
"description": "A draggable and resizable grid layout with responsive breakpoints, for React.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc