rc-select
Advanced tools
Comparing version 4.8.1 to 4.8.2
@@ -161,3 +161,3 @@ 'use strict'; | ||
} | ||
var className = (_className = {}, _defineProperty(_className, dropdownPrefixCls, 1), _defineProperty(_className, dropdownPrefixCls + '--below', 1), _defineProperty(_className, dropdownPrefixCls + '-hidden', !visible), _className); | ||
var className = (_className = {}, _defineProperty(_className, dropdownPrefixCls, 1), _defineProperty(_className, dropdownPrefixCls + '--below', 1), _defineProperty(_className, dropdownPrefixCls + '-hidden', !visible), _defineProperty(_className, props.className, !!props.className), _className); | ||
// single and not combobox, input is inside dropdown | ||
@@ -164,0 +164,0 @@ return _react2['default'].createElement( |
@@ -45,2 +45,5 @@ 'use strict'; | ||
menuProps.onDeselect = props.onMenuDeselect; | ||
menuProps.onSelect = props.onMenuSelect; | ||
} else { | ||
menuProps.onClick = props.onMenuSelect; | ||
} | ||
@@ -60,3 +63,2 @@ var value = props.value; | ||
style: props.dropdownMenuStyle, | ||
onSelect: props.onMenuSelect, | ||
defaultActiveFirst: true, | ||
@@ -63,0 +65,0 @@ activeKey: activeKey, |
@@ -221,6 +221,6 @@ 'use strict'; | ||
var selectedValue = (0, _util.getValuePropValue)(item); | ||
if (value.indexOf(selectedValue) !== -1) { | ||
return; | ||
} | ||
if ((0, _util.isMultipleOrTags)(props)) { | ||
if (value.indexOf(selectedValue) !== -1) { | ||
return; | ||
} | ||
value = value.concat([selectedValue]); | ||
@@ -368,2 +368,5 @@ } else { | ||
var props = this.props; | ||
var multiple = (0, _util.isMultipleOrTags)(props); | ||
var dropdownClassName = props.dropdownClassName || ''; | ||
dropdownClassName = dropdownClassName + ' ' + props.prefixCls + '-dropdown--' + (multiple ? 'multiple' : 'single'); | ||
return _react2['default'].createElement( | ||
@@ -406,2 +409,3 @@ _rcAnimate2['default'], | ||
showSearch: props.showSearch, | ||
className: dropdownClassName, | ||
dropdownMenuStyle: props.dropdownMenuStyle, | ||
@@ -408,0 +412,0 @@ dropdownStyle: props.dropdownStyle }, |
{ | ||
"name": "rc-select", | ||
"version": "4.8.1", | ||
"version": "4.8.2", | ||
"description": "select ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -207,2 +207,8 @@ # rc-select | ||
<tr> | ||
<td>dropdownClassName</td> | ||
<td>String</td> | ||
<th></th> | ||
<td>additional className applied to dropdown</td> | ||
</tr> | ||
<tr> | ||
<td>dropdownStyle</td> | ||
@@ -209,0 +215,0 @@ <td>Object</td> |
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
60450
1367
312