rc-select
Advanced tools
Comparing version 14.8.1 to 14.9.0
@@ -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 @@ } |
@@ -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": { |
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
330111
7023