rc-tree-select
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -29,2 +29,6 @@ 'use strict'; | ||
var _objectAssign = require('object-assign'); | ||
var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
var _rcAnimate = require('rc-animate'); | ||
@@ -299,3 +303,3 @@ | ||
this.fireChange(value, label); | ||
this.fireChange(value, label, { triggerValue: selectedValue, triggerNode: item, checked: info.checked }); | ||
this.setState({ | ||
@@ -481,3 +485,3 @@ inputValue: '' | ||
} | ||
this.fireChange(value, label); | ||
this.fireChange(value, label, { triggerValue: selectedValue, clear: true }); | ||
}, | ||
@@ -504,3 +508,3 @@ | ||
fireChange: function fireChange(value, label) { | ||
fireChange: function fireChange(value, label, extraInfo) { | ||
var props = this.props; | ||
@@ -513,3 +517,7 @@ if (!('value' in props)) { | ||
if (this.isValueChange(value)) { | ||
props.onChange(this.getVLForOnChange(value), this.getVLForOnChange(label), [].concat(_toConsumableArray(this.state.value))); | ||
var ex = { preValue: [].concat(_toConsumableArray(this.state.value)) }; | ||
if (extraInfo) { | ||
(0, _objectAssign2['default'])(ex, extraInfo); | ||
} | ||
props.onChange(this.getVLForOnChange(value), this.getVLForOnChange(label), ex); | ||
} | ||
@@ -516,0 +524,0 @@ }, |
{ | ||
"name": "rc-tree-select", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "tree-select ui component for react", | ||
@@ -5,0 +5,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
86672
2523