From bbc25ad25844654bf724086c28aa3c2862607495 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 6 Jul 2020 17:44:52 +0800 Subject: [PATCH] fix: input trigger twice event --- components/input/Input.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/input/Input.jsx b/components/input/Input.jsx index b12cf9ad8..8777d27b7 100644 --- a/components/input/Input.jsx +++ b/components/input/Input.jsx @@ -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 ; + return ; }, clearPasswordValueAttribute() { // https://github.com/ant-design/ant-design/issues/20541