@kitten-team/react-native-sortable-grid
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -252,3 +252,3 @@ import * as React from 'react' | ||
deleteBlockIndices.forEach((deleteBlock) => { | ||
this.deleteBlock([deleteBlock]) | ||
this.deleteBlock(deleteBlock) | ||
}) | ||
@@ -274,3 +274,2 @@ } | ||
_.sortBy(deleteBlockIndices, index => -index).forEach(index => { | ||
--blockPositionsSetCount | ||
blockPositions.splice(index, 1) | ||
@@ -281,3 +280,5 @@ this._fixItemOrderOnDeletion(this.itemOrder[index]) | ||
}) | ||
blockPositionsSetCount = blockPositions.length; | ||
this.setState({ blockPositions, blockPositionsSetCount }, () => { | ||
this.resetOrder = true; | ||
this.items.forEach( (item, order) => { | ||
@@ -284,0 +285,0 @@ let blockIndex = _.findIndex(this.itemOrder, item => item.order === order) |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Drag-and-drop sortable grid view for React Native.", | ||
@@ -11,0 +11,0 @@ "main": "index.js", |
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
207021
997