react-filtered-multiselect
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -0,1 +1,5 @@ | ||
## 0.3.0 - 2015-01-01 | ||
Added: double-clicking now adds the selected option to the selection. | ||
## 0.2.0 - 2014-12-06 | ||
@@ -2,0 +6,0 @@ |
@@ -158,3 +158,7 @@ 'use strict'; | ||
_onButtonClick:function(e) { | ||
/** | ||
* Adds backing objects for the currently selected options to the selection | ||
* and calls back with the new list. | ||
*/ | ||
_addSelectedToSelection:function(e) { | ||
var selectedOptions = | ||
@@ -187,2 +191,3 @@ this.props.selectedOptions.concat(getItemsByProp(this.state.filteredOptions, | ||
onChange: this._updateSelectedValues, | ||
onDoubleClick: this._addSelectedToSelection, | ||
disabled: props.disabled}, | ||
@@ -196,3 +201,3 @@ this.state.filteredOptions.map(function(option) { | ||
disabled: state.selectedValues.length === 0, | ||
onClick: this._onButtonClick}, | ||
onClick: this._addSelectedToSelection}, | ||
this.props.buttonText | ||
@@ -199,0 +204,0 @@ ) |
{ | ||
"name": "react-filtered-multiselect", | ||
"description": "Filtered multi-select React component", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"author": "Jonny Buchanan <jonathan.buchanan@gmail.com> (https://github.com/insin)", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
15292
188