diff --git a/src/TreeSelect.tsx b/src/TreeSelect.tsx index 8014d157..aeb089bd 100644 --- a/src/TreeSelect.tsx +++ b/src/TreeSelect.tsx @@ -422,13 +422,6 @@ const TreeSelect = React.forwardRef((props, ref) mergedFieldNames, ); - // if multiple and maxCount is set, check if exceed maxCount - if (mergedMultiple && maxCount !== undefined) { - if (formattedKeyList.length > maxCount) { - return; - } - } - const labeledValues = convert2LabelValues(newRawValues); setInternalValue(labeledValues);