fix: All values being selected in Select (#25202)

(cherry picked from commit e605d6dddf)
This commit is contained in:
Michael S. Molina
2023-09-06 10:37:21 -03:00
committed by Michael S. Molina
parent 408708be62
commit d8c72b86bc

View File

@@ -208,13 +208,13 @@ const Select = forwardRef(
() =>
!isSingleMode &&
allowSelectAll &&
fullSelectOptions.length > 0 &&
selectOptions.length > 0 &&
enabledOptions.length > 1 &&
!inputValue,
[
isSingleMode,
allowSelectAll,
fullSelectOptions.length,
selectOptions.length,
enabledOptions.length,
inputValue,
],