From c96aee23016c823d637dbf98178718274f620ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B1=AA?= <1844749591@qq.com> Date: Thu, 5 Dec 2024 12:33:56 +0800 Subject: [PATCH] chore: remove unreachable logic --- src/TreeSelect.tsx | 7 ------- 1 file changed, 7 deletions(-) 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);