Skip to content

Commit

Permalink
fix: max tag render
Browse files Browse the repository at this point in the history
  • Loading branch information
yinkaihui committed May 17, 2024
1 parent df7c420 commit 3a79a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/InputTag/input-tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function InputTag(baseProps: InputTagProps<string | ObjectValueType>, ref) {

function renderEllipsisNode(invisibleTagCount: number) {
const renderEllipsisLabel =
typeof maxTagCount === 'object'
typeof maxTagCount === 'object' && maxTagCount.render
? maxTagCount.render
: () => <span className={`${prefixCls}-tag-ellipsis`}>+{invisibleTagCount}</span>;

Expand Down

0 comments on commit 3a79a5d

Please sign in to comment.