fix: input trigger twice event
parent
89c9e81433
commit
bbc25ad258
|
@ -157,12 +157,14 @@ export default {
|
||||||
}),
|
}),
|
||||||
ref: this.saveInput,
|
ref: this.saveInput,
|
||||||
key: 'ant-input',
|
key: 'ant-input',
|
||||||
|
onInput: handleChange,
|
||||||
|
onChange: noop,
|
||||||
};
|
};
|
||||||
// vue bug ?
|
// vue bug ?
|
||||||
if (inputProps.maxLength === undefined) {
|
if (inputProps.maxLength === undefined) {
|
||||||
delete inputProps.maxLength;
|
delete inputProps.maxLength;
|
||||||
}
|
}
|
||||||
return <input {...inputProps} onInput={handleChange} onChange={noop} />;
|
return <input {...inputProps} />;
|
||||||
},
|
},
|
||||||
clearPasswordValueAttribute() {
|
clearPasswordValueAttribute() {
|
||||||
// https://github.com/ant-design/ant-design/issues/20541
|
// https://github.com/ant-design/ant-design/issues/20541
|
||||||
|
|
Loading…
Reference in New Issue