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.8.1 to 14.9.0

7

es/BaseSelect.js

@@ -110,2 +110,3 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";

var listRef = React.useRef(null);
var blurRef = React.useRef(false);

@@ -243,3 +244,5 @@ /** Used for component focused management */

}
if (disabled) {
// After onBlur is triggered, the focused does not need to be reset
if (disabled && !blurRef.current) {
setMockFocused(false);

@@ -348,4 +351,6 @@ }

var onContainerBlur = function onContainerBlur() {
blurRef.current = true;
setMockFocused(false, function () {
focusRef.current = false;
blurRef.current = false;
onToggleOpen(false);

@@ -352,0 +357,0 @@ });

@@ -353,2 +353,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

customizeIconProps: {
value: value,
disabled: disabled,
isSelected: selected

@@ -355,0 +357,0 @@ }

2

es/Select.d.ts

@@ -102,3 +102,3 @@ /**

}
declare const TypedSelect: (<ValueType = any, OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
declare const TypedSelect: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
children?: React.ReactNode;

@@ -105,0 +105,0 @@ } & {

@@ -121,2 +121,3 @@ "use strict";

var listRef = React.useRef(null);
var blurRef = React.useRef(false);

@@ -254,3 +255,5 @@ /** Used for component focused management */

}
if (disabled) {
// After onBlur is triggered, the focused does not need to be reset
if (disabled && !blurRef.current) {
setMockFocused(false);

@@ -359,4 +362,6 @@ }

var onContainerBlur = function onContainerBlur() {
blurRef.current = true;
setMockFocused(false, function () {
focusRef.current = false;
blurRef.current = false;
onToggleOpen(false);

@@ -363,0 +368,0 @@ });

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

customizeIconProps: {
value: value,
disabled: disabled,
isSelected: selected

@@ -363,0 +365,0 @@ }

@@ -102,3 +102,3 @@ /**

}
declare const TypedSelect: (<ValueType = any, OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
declare const TypedSelect: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
children?: React.ReactNode;

@@ -105,0 +105,0 @@ } & {

{
"name": "rc-select",
"version": "14.8.1",
"version": "14.9.0",
"description": "React Select",

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

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