react-selectable-fast
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -232,6 +232,10 @@ 'use strict'; | ||
value: function toggleSelectionMode() { | ||
if (this.selectedItems.size && !this.state.selectionMode) { | ||
var selectedItems = this.selectedItems; | ||
var selectionMode = this.state.selectionMode; | ||
if (selectedItems.size && !selectionMode) { | ||
this.setState({ selectionMode: true }); | ||
} | ||
if (!this.selectedItems.size && this.state.selectionMode) { | ||
if (!selectedItems.size && selectionMode) { | ||
this.setState({ selectionMode: false }); | ||
@@ -430,2 +434,3 @@ } | ||
this.setState({ selectionMode: true }); | ||
this.props.onSelectionFinish([].concat(_toConsumableArray(this.selectedItems))); | ||
@@ -432,0 +437,0 @@ } |
{ | ||
"name": "react-selectable-fast", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Enable other React components to be selectable by drawing a box with your mouse", | ||
@@ -29,3 +29,4 @@ "repository": { | ||
"touch", | ||
"react" | ||
"react", | ||
"react-component" | ||
], | ||
@@ -32,0 +33,0 @@ "author": "Valery Bugakov <skymk1@gmail.com>", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
0
3613882
9027