diff --git a/src/TreeSelect.tsx b/src/TreeSelect.tsx index ae2fef13..3d20e5d4 100644 --- a/src/TreeSelect.tsx +++ b/src/TreeSelect.tsx @@ -536,7 +536,7 @@ const TreeSelect = React.forwardRef((props, ref) // Single mode always set value triggerChange([selectedValue], { selected: true, triggerValue: selectedValue }, 'option'); } else { - let newRawValues = selected + let newRawValues = selected && selectedValue !== null ? [...rawValues, selectedValue] : rawCheckedValues.filter(v => v !== selectedValue);