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

rc-select

Package Overview
Dependencies
Maintainers
9
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 14.0.6 to 14.1.0

12

es/OptionList.js
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

@@ -34,2 +35,3 @@ var _excluded = ["disabled", "title", "children", "style", "className"];

multiple = _useBaseProps.multiple,
mode = _useBaseProps.mode,
searchValue = _useBaseProps.searchValue,

@@ -117,4 +119,8 @@ toggleOpen = _useBaseProps.toggleOpen,

setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
}, [memoFlattenOptions.length, searchValue]); // Auto scroll to item position in single mode
}, [memoFlattenOptions.length, searchValue]); // https://github.com/ant-design/ant-design/issues/34975
var isSelected = React.useCallback(function (value) {
return rawValues.has(value) && mode !== 'combobox';
}, [mode, _toConsumableArray(rawValues).toString()]); // Auto scroll to item position in single mode
useEffect(function () {

@@ -270,3 +276,3 @@ /**

id: "".concat(id, "_list_").concat(index),
"aria-selected": rawValues.has(value)
"aria-selected": isSelected(value)
}), value) : null;

@@ -322,3 +328,3 @@ };

var selected = rawValues.has(value);
var selected = isSelected(value);
var optionPrefixCls = "".concat(itemPrefixCls, "-option");

@@ -325,0 +331,0 @@ var optionClassName = classNames(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));

@@ -18,2 +18,4 @@ "use strict";

var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

@@ -60,2 +62,3 @@

multiple = _useBaseProps.multiple,
mode = _useBaseProps.mode,
searchValue = _useBaseProps.searchValue,

@@ -143,4 +146,8 @@ toggleOpen = _useBaseProps.toggleOpen,

setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
}, [memoFlattenOptions.length, searchValue]); // Auto scroll to item position in single mode
}, [memoFlattenOptions.length, searchValue]); // https://github.com/ant-design/ant-design/issues/34975
var isSelected = React.useCallback(function (value) {
return rawValues.has(value) && mode !== 'combobox';
}, [mode, (0, _toConsumableArray2.default)(rawValues).toString()]); // Auto scroll to item position in single mode
(0, React.useEffect)(function () {

@@ -296,3 +303,3 @@ /**

id: "".concat(id, "_list_").concat(index),
"aria-selected": rawValues.has(value)
"aria-selected": isSelected(value)
}), value) : null;

@@ -347,3 +354,3 @@ };

var selected = rawValues.has(value);
var selected = isSelected(value);
var optionPrefixCls = "".concat(itemPrefixCls, "-option");

@@ -350,0 +357,0 @@ var optionClassName = (0, _classnames.default)(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), (0, _defineProperty2.default)(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), (0, _defineProperty2.default)(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));

{
"name": "rc-select",
"version": "14.0.6",
"version": "14.1.0",
"description": "React Select",

@@ -5,0 +5,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

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