thinkasany
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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<OptionType>; |
|
|
|
|
|
|
|
if ((m as any) === 'combobox') { |
|
|
|
if (m === 'combobox') { |
|
|
|
return undefined; |
|
|
|
} |
|
|
|
|
|
|
|