Skip to content

Commit

Permalink
fix: improve to not treat as a valid option when the value is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Aug 27, 2024
1 parent 2b8f4c7 commit 302e06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)

// =========================== Values ===========================
const rawMixedLabeledValues = React.useMemo(
() => toLabeledValues(internalValue),
() => toLabeledValues(internalValue === null ? [] : internalValue),
[toLabeledValues, internalValue],
);

Expand Down

0 comments on commit 302e06e

Please sign in to comment.