fix: input bug at ie9 #1421
parent
45eb4be22a
commit
cdcae1b39f
|
@ -251,9 +251,7 @@ export default {
|
||||||
ref: 'input',
|
ref: 'input',
|
||||||
key: 'ant-input',
|
key: 'ant-input',
|
||||||
};
|
};
|
||||||
if ($listeners['change.value']) {
|
|
||||||
inputProps.directives = [{ name: 'ant-input' }];
|
inputProps.directives = [{ name: 'ant-input' }];
|
||||||
}
|
|
||||||
return this.renderLabeledIcon(prefixCls, <input {...inputProps} />);
|
return this.renderLabeledIcon(prefixCls, <input {...inputProps} />);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -178,6 +178,9 @@ const DateInput = {
|
||||||
name: 'ant-ref',
|
name: 'ant-ref',
|
||||||
value: this.saveDateInput,
|
value: this.saveDateInput,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'ant-input',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}}
|
}}
|
||||||
class={`${prefixCls}-input ${invalidClass}`}
|
class={`${prefixCls}-input ${invalidClass}`}
|
||||||
|
|
|
@ -15,7 +15,7 @@ function chooseYear(year) {
|
||||||
const value = this.sValue.clone();
|
const value = this.sValue.clone();
|
||||||
value.year(year);
|
value.year(year);
|
||||||
value.month(this.sValue.month());
|
value.month(this.sValue.month());
|
||||||
this.sValue = value
|
this.sValue = value;
|
||||||
this.__emit('select', value);
|
this.__emit('select', value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,13 @@ export default {
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
onKeyup={this.go}
|
onKeyup={this.go}
|
||||||
onBlur={this.handleBlur}
|
onBlur={this.handleBlur}
|
||||||
|
{...{
|
||||||
|
directives: [
|
||||||
|
{
|
||||||
|
name: 'ant-input',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
{locale.page}
|
{locale.page}
|
||||||
{gotoButton}
|
{gotoButton}
|
||||||
|
|
|
@ -355,6 +355,13 @@ export default {
|
||||||
onKeyup={this.handleKeyUp}
|
onKeyup={this.handleKeyUp}
|
||||||
onInput={this.handleKeyUp}
|
onInput={this.handleKeyUp}
|
||||||
size="3"
|
size="3"
|
||||||
|
{...{
|
||||||
|
directives: [
|
||||||
|
{
|
||||||
|
name: 'ant-input',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<span class={`${prefixCls}-slash`}>/</span>
|
<span class={`${prefixCls}-slash`}>/</span>
|
||||||
{allPages}
|
{allPages}
|
||||||
|
|
|
@ -733,7 +733,19 @@ const Select = {
|
||||||
const props = this.$props;
|
const props = this.$props;
|
||||||
const { _inputValue: inputValue } = this.$data;
|
const { _inputValue: inputValue } = this.$data;
|
||||||
const attrs = getAttrs(this);
|
const attrs = getAttrs(this);
|
||||||
const defaultInput = <input id={attrs.id} autoComplete="off" />;
|
const defaultInput = (
|
||||||
|
<input
|
||||||
|
{...{
|
||||||
|
directives: [
|
||||||
|
{
|
||||||
|
name: 'ant-input',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}}
|
||||||
|
id={attrs.id}
|
||||||
|
autoComplete="off"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
const inputElement = props.getInputElement ? props.getInputElement() : defaultInput;
|
const inputElement = props.getInputElement ? props.getInputElement() : defaultInput;
|
||||||
const inputCls = classnames(getClass(inputElement), {
|
const inputCls = classnames(getClass(inputElement), {
|
||||||
|
|
|
@ -178,6 +178,13 @@ const Header = {
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
onInput={this.onInputChange}
|
onInput={this.onInputChange}
|
||||||
readOnly={!!inputReadOnly}
|
readOnly={!!inputReadOnly}
|
||||||
|
{...{
|
||||||
|
directives: [
|
||||||
|
{
|
||||||
|
name: 'ant-input',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -377,6 +377,13 @@ export default {
|
||||||
autoFocus={autoFocus}
|
autoFocus={autoFocus}
|
||||||
readOnly={!!inputReadOnly}
|
readOnly={!!inputReadOnly}
|
||||||
id={id}
|
id={id}
|
||||||
|
{...{
|
||||||
|
directives: [
|
||||||
|
{
|
||||||
|
name: 'ant-input',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
{inputIcon || <span class={`${prefixCls}-icon`} />}
|
{inputIcon || <span class={`${prefixCls}-icon`} />}
|
||||||
{this.renderClearButton()}
|
{this.renderClearButton()}
|
||||||
|
|
|
@ -103,6 +103,9 @@ const SearchInput = {
|
||||||
name: 'ant-ref',
|
name: 'ant-ref',
|
||||||
value: this.inputRef,
|
value: this.inputRef,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'ant-input',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}}
|
}}
|
||||||
onInput={onSearchInputChange}
|
onInput={onSearchInputChange}
|
||||||
|
|
Loading…
Reference in New Issue