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; }