From a3dbb693c796d15bb42164cabca62225eda5db79 Mon Sep 17 00:00:00 2001 From: cipchk Date: Fri, 5 Jul 2024 13:33:24 +0800 Subject: [PATCH] fix(form:select): fix `maxTagCount` default value is `Infinity` --- packages/form/src/widgets/select/select.widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form/src/widgets/select/select.widget.ts b/packages/form/src/widgets/select/select.widget.ts index a344152ab..10a526763 100644 --- a/packages/form/src/widgets/select/select.widget.ts +++ b/packages/form/src/widgets/select/select.widget.ts @@ -120,7 +120,7 @@ export class SelectWidget extends ControlUIWidget implemen mode: mode || 'default', showSearch: toBool(showSearch, true), tokenSeparators: tokenSeparators || [], - maxTagCount: maxTagCount || undefined, + maxTagCount: maxTagCount || Infinity, optionHeightPx: optionHeightPx || 32, optionOverflowSize: optionOverflowSize || 8, showArrow: typeof showArrow !== 'boolean' ? undefined : showArrow,