Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-select

Package Overview
Dependencies
Maintainers
2
Versions
469
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-select - npm Package Compare versions

Comparing version 4.8.1 to 4.8.2

2

lib/Dropdown.js

@@ -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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc