react-grid-layout
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
491481
6621