react-dropdown
Advanced tools
Comparing version 1.4.0 to 1.4.2
@@ -124,3 +124,6 @@ 'use strict'; | ||
var value = option.value || option.label || option; | ||
var value = option.value; | ||
if (typeof value === 'undefined') { | ||
value = option.label || option; | ||
} | ||
var label = option.label || option.value || option; | ||
@@ -189,3 +192,3 @@ | ||
value: function render() { | ||
var _classNames, _classNames2, _classNames3; | ||
var _classNames, _classNames2, _classNames3, _classNames4; | ||
@@ -196,2 +199,3 @@ var _props2 = this.props, | ||
menuClassName = _props2.menuClassName, | ||
arrowClassName = _props2.arrowClassName, | ||
className = _props2.className; | ||
@@ -206,2 +210,3 @@ | ||
var menuClass = (0, _classnames2.default)((_classNames3 = {}, _defineProperty(_classNames3, baseClassName + '-menu', true), _defineProperty(_classNames3, menuClassName, !!menuClassName), _classNames3)); | ||
var arrowClass = (0, _classnames2.default)((_classNames4 = {}, _defineProperty(_classNames4, baseClassName + '-arrow', true), _defineProperty(_classNames4, arrowClassName, !!arrowClassName), _classNames4)); | ||
@@ -226,3 +231,3 @@ var value = _react2.default.createElement( | ||
value, | ||
_react2.default.createElement('span', { className: baseClassName + '-arrow' }) | ||
_react2.default.createElement('span', { className: arrowClass }) | ||
), | ||
@@ -229,0 +234,0 @@ menu |
{ | ||
"name": "react-dropdown", | ||
"version": "1.4.0", | ||
"version": "1.4.2", | ||
"description": "React dropdown component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -98,2 +98,8 @@ react-dropdown | ||
The `arrowClassName` prop is passed down to the arrow `span` , which also has the `Dropdown-arrow` class. | ||
```JavaScript | ||
<Dropdown arrowClassName='myArrowClassName' /> | ||
``` | ||
Check more examples in the example folder. | ||
@@ -100,0 +106,0 @@ |
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
17850
314
120