Browse Source

type(select): supplementary mode type (#43413)

pull/43431/head
thinkasany 1 year ago
committed by GitHub
parent
commit
a4d01a5a17
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/select/index.tsx

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

Loading…
Cancel
Save