|
|
|
@ -622,7 +622,7 @@ const Select = {
|
|
|
|
|
if (value.length) { |
|
|
|
|
hidden = true; |
|
|
|
|
} |
|
|
|
|
if (isCombobox(props) && value.length === 1 && (state._value && !state._value[0])) { |
|
|
|
|
if (!state._mirrorInputValue && isCombobox(props) && value.length === 1 && (state._value && !state._value[0])) { |
|
|
|
|
hidden = false; |
|
|
|
|
} |
|
|
|
|
const placeholder = props.placeholder; |
|
|
|
@ -744,19 +744,7 @@ const Select = {
|
|
|
|
|
const props = this.$props; |
|
|
|
|
const { _inputValue: inputValue, _mirrorInputValue } = this.$data; |
|
|
|
|
const attrs = getAttrs(this); |
|
|
|
|
const defaultInput = ( |
|
|
|
|
<input |
|
|
|
|
{...{ |
|
|
|
|
directives: [ |
|
|
|
|
{ |
|
|
|
|
name: 'ant-input', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}} |
|
|
|
|
id={attrs.id} |
|
|
|
|
autoComplete="off" |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
const defaultInput = <input id={attrs.id} autoComplete="off" />; |
|
|
|
|
|
|
|
|
|
const inputElement = props.getInputElement ? props.getInputElement() : defaultInput; |
|
|
|
|
const inputCls = classnames(getClass(inputElement), { |
|
|
|
@ -787,6 +775,9 @@ const Select = {
|
|
|
|
|
name: 'ant-ref', |
|
|
|
|
value: this.saveInputRef, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: 'ant-input', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
on: { |
|
|
|
|
input: this.onInputChange, |
|
|
|
|