Browse Source

type: optimize type auto-complete mode (#43581)

pull/43583/head
thinkasany 1 year ago
committed by GitHub
parent
commit
a7400d6e34
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/auto-complete/index.tsx

3
components/auto-complete/index.tsx

@ -16,6 +16,7 @@ import type {
DefaultOptionType, DefaultOptionType,
InternalSelectProps, InternalSelectProps,
RefSelectProps, RefSelectProps,
SelectProps,
} from '../select'; } from '../select';
import Select from '../select'; import Select from '../select';
@ -146,7 +147,7 @@ const AutoComplete: React.ForwardRefRenderFunction<RefSelectProps, AutoCompleteP
prefixCls={prefixCls} prefixCls={prefixCls}
popupClassName={popupClassName || dropdownClassName} popupClassName={popupClassName || dropdownClassName}
className={classNames(`${prefixCls}-auto-complete`, className)} className={classNames(`${prefixCls}-auto-complete`, className)}
mode={Select.SECRET_COMBOBOX_MODE_DO_NOT_USE as any} mode={Select.SECRET_COMBOBOX_MODE_DO_NOT_USE as SelectProps['mode']}
{...{ {...{
// Internal api // Internal api
getInputElement, getInputElement,

Loading…
Cancel
Save