From a4d01a5a170b5f57a3cd896827c765e71721f0af Mon Sep 17 00:00:00 2001 From: thinkasany <117748716+thinkasany@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:00:15 +0800 Subject: [PATCH] type(select): supplementary mode type (#43413) --- components/select/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/select/index.tsx b/components/select/index.tsx index 9eed691872..40b21c0490 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -43,7 +43,7 @@ export interface InternalSelectProps< suffixIcon?: React.ReactNode; size?: SizeType; disabled?: boolean; - mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE'; + mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE' | 'combobox'; bordered?: boolean; } @@ -118,7 +118,7 @@ const InternalSelect = < const mode = React.useMemo(() => { const { mode: m } = props as InternalSelectProps; - if ((m as any) === 'combobox') { + if (m === 'combobox') { return undefined; }