Skip to content

Commit 302e06e

Browse files
committed
fix: improve to not treat as a valid option when the value is null.
1 parent 2b8f4c7 commit 302e06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TreeSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
390390

391391
// =========================== Values ===========================
392392
const rawMixedLabeledValues = React.useMemo(
393-
() => toLabeledValues(internalValue),
393+
() => toLabeledValues(internalValue === null ? [] : internalValue),
394394
[toLabeledValues, internalValue],
395395
);
396396

0 commit comments

Comments
 (0)