react-sortablejs
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -213,3 +213,3 @@ import Sortable from 'sortablejs'; | ||
ReactSortable.prototype.getChildren = function () { | ||
var _a = this.props, children = _a.children, dataIdAttr = _a.dataIdAttr, prevClassName = _a.className, _b = _a.selectedClass, selectedClass = _b === void 0 ? "sortable-selected" : _b, _c = _a.chosenClass, chosenClass = _c === void 0 ? "sortable-chosen" : _c, _d = _a.dragClass, _e = _a.fallbackClass, _f = _a.ghostClass, _g = _a.swapClass, _h = _a.filter, filter = _h === void 0 ? "sortable-filter" : _h, list = _a.list; | ||
var _a = this.props, children = _a.children, dataIdAttr = _a.dataIdAttr, _b = _a.selectedClass, selectedClass = _b === void 0 ? "sortable-selected" : _b, _c = _a.chosenClass, chosenClass = _c === void 0 ? "sortable-chosen" : _c, _d = _a.dragClass, _e = _a.fallbackClass, _f = _a.ghostClass, _g = _a.swapClass, _h = _a.filter, filter = _h === void 0 ? "sortable-filter" : _h, list = _a.list; | ||
// if no children, don't do anything. | ||
@@ -222,2 +222,3 @@ if (!children || children == null) | ||
var item = list[index]; | ||
var prevClassName = child.props.className; | ||
// @todo - handle the function if avalable. I don't think anyone will be doing this soon. | ||
@@ -224,0 +225,0 @@ var filtered = typeof filter === "string" && (_a = {}, |
@@ -219,3 +219,3 @@ 'use strict'; | ||
ReactSortable.prototype.getChildren = function () { | ||
var _a = this.props, children = _a.children, dataIdAttr = _a.dataIdAttr, prevClassName = _a.className, _b = _a.selectedClass, selectedClass = _b === void 0 ? "sortable-selected" : _b, _c = _a.chosenClass, chosenClass = _c === void 0 ? "sortable-chosen" : _c, _d = _a.dragClass, _e = _a.fallbackClass, _f = _a.ghostClass, _g = _a.swapClass, _h = _a.filter, filter = _h === void 0 ? "sortable-filter" : _h, list = _a.list; | ||
var _a = this.props, children = _a.children, dataIdAttr = _a.dataIdAttr, _b = _a.selectedClass, selectedClass = _b === void 0 ? "sortable-selected" : _b, _c = _a.chosenClass, chosenClass = _c === void 0 ? "sortable-chosen" : _c, _d = _a.dragClass, _e = _a.fallbackClass, _f = _a.ghostClass, _g = _a.swapClass, _h = _a.filter, filter = _h === void 0 ? "sortable-filter" : _h, list = _a.list; | ||
// if no children, don't do anything. | ||
@@ -228,2 +228,3 @@ if (!children || children == null) | ||
var item = list[index]; | ||
var prevClassName = child.props.className; | ||
// @todo - handle the function if avalable. I don't think anyone will be doing this soon. | ||
@@ -230,0 +231,0 @@ var filtered = typeof filter === "string" && (_a = {}, |
@@ -8,3 +8,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"private": false, | ||
@@ -11,0 +11,0 @@ "main": "dist/index.js", |
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
63862
1004