Select disabled 状态不应该还可以 search

This commit is contained in:
liaoxuezhi 2019-10-21 19:03:03 +08:00
parent f79ef10e49
commit 0bb4510964

View File

@ -625,7 +625,7 @@ export class Select extends React.Component<SelectProps, SelectState> {
>
<div className={cx(`Select-valueWrap`)}>
{this.renderValue(options)}
{searchable ? (
{searchable && !disabled ? (
<input
{...getInputProps({
className: cx(`Select-input`),