Skip to content

Commit c96aee2

Browse files
committed
chore: remove unreachable logic
1 parent 6193365 commit c96aee2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/TreeSelect.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,6 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
422422
mergedFieldNames,
423423
);
424424

425-
// if multiple and maxCount is set, check if exceed maxCount
426-
if (mergedMultiple && maxCount !== undefined) {
427-
if (formattedKeyList.length > maxCount) {
428-
return;
429-
}
430-
}
431-
432425
const labeledValues = convert2LabelValues(newRawValues);
433426
setInternalValue(labeledValues);
434427

0 commit comments

Comments
 (0)