From 3a79a5d56936eb8eca49f6cbcb86cadc0300da3d Mon Sep 17 00:00:00 2001 From: yinkaihui Date: Fri, 17 May 2024 17:40:36 +0800 Subject: [PATCH] fix: max tag render --- components/InputTag/input-tag.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/InputTag/input-tag.tsx b/components/InputTag/input-tag.tsx index a7f159e828..94400e0c0f 100644 --- a/components/InputTag/input-tag.tsx +++ b/components/InputTag/input-tag.tsx @@ -290,7 +290,7 @@ function InputTag(baseProps: InputTagProps, ref) { function renderEllipsisNode(invisibleTagCount: number) { const renderEllipsisLabel = - typeof maxTagCount === 'object' + typeof maxTagCount === 'object' && maxTagCount.render ? maxTagCount.render : () => +{invisibleTagCount};