diff --git a/src/select/base/Option.tsx b/src/select/base/Option.tsx index 936da6130..ac5ce6d82 100644 --- a/src/select/base/Option.tsx +++ b/src/select/base/Option.tsx @@ -60,6 +60,7 @@ const Option: React.FC = (props) => { } = props; let selected: boolean; + let indeterminate: boolean; const label = propLabel || value; const disabled = propDisabled || (multiple && Array.isArray(selectedValue) && max && selectedValue.length >= max); @@ -98,6 +99,7 @@ const Option: React.FC = (props) => { }); if (props.checkAll) { selected = selectedValue.length === props.optionLength; + indeterminate = selectedValue.length > 0 && !selected; } } @@ -115,6 +117,7 @@ const Option: React.FC = (props) => { return (