fix: input trigger twice event

pull/2419/head^2
tanjinzhou 2020-07-06 17:44:52 +08:00
parent 89c9e81433
commit bbc25ad258
1 changed files with 3 additions and 1 deletions

View File

@ -157,12 +157,14 @@ export default {
}),
ref: this.saveInput,
key: 'ant-input',
onInput: handleChange,
onChange: noop,
};
// vue bug
if (inputProps.maxLength === undefined) {
delete inputProps.maxLength;
}
return <input {...inputProps} onInput={handleChange} onChange={noop} />;
return <input {...inputProps} />;
},
clearPasswordValueAttribute() {
// https://github.com/ant-design/ant-design/issues/20541