react-sortable-hoc
Advanced tools
Comparing version 0.4.10 to 0.4.11
Changelog | ||
------------ | ||
### 0.4.11 | ||
Fix: This release fixes some issues caused by the `onSortEnd` callback being invoked before `setState` [#82](https://github.com/clauderic/react-sortable-hoc/issues/82). | ||
### 0.4.10 | ||
@@ -4,0 +7,0 @@ Fix: This version fixes issues with nested `SortableContainer` elements using drag handles from also dragging their parent [#112](https://github.com/clauderic/react-sortable-hoc/issues/112), #127(https://github.com/clauderic/react-sortable-hoc/pull/127). Thanks []@DeadHeadRussell](https://github.com/DeadHeadRussell)! |
@@ -304,10 +304,2 @@ 'use strict'; | ||
if (typeof onSortEnd === 'function') { | ||
onSortEnd({ | ||
oldIndex: _this.index, | ||
newIndex: _this.newIndex, | ||
collection: collection | ||
}, e); | ||
} | ||
// Stop autoscroll | ||
@@ -325,2 +317,10 @@ clearInterval(_this.autoscrollInterval); | ||
if (typeof onSortEnd === 'function') { | ||
onSortEnd({ | ||
oldIndex: _this.index, | ||
newIndex: _this.newIndex, | ||
collection: collection | ||
}, e); | ||
} | ||
_this._touched = false; | ||
@@ -327,0 +327,0 @@ }; |
@@ -277,10 +277,2 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
if (typeof onSortEnd === 'function') { | ||
onSortEnd({ | ||
oldIndex: _this.index, | ||
newIndex: _this.newIndex, | ||
collection: collection | ||
}, e); | ||
} | ||
// Stop autoscroll | ||
@@ -298,2 +290,10 @@ clearInterval(_this.autoscrollInterval); | ||
if (typeof onSortEnd === 'function') { | ||
onSortEnd({ | ||
oldIndex: _this.index, | ||
newIndex: _this.newIndex, | ||
collection: collection | ||
}, e); | ||
} | ||
_this._touched = false; | ||
@@ -300,0 +300,0 @@ }; |
{ | ||
"name": "react-sortable-hoc", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is too big to display
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 9 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
1461844
175
14425
1
31
5