Commit 86cc6aec authored by 杨南鸿's avatar 杨南鸿

处理输入框规则报错后不消失的问题

parent ee09addd
......@@ -138,7 +138,8 @@
hovering: false,
focused: false,
isComposing: false,
passwordVisible: false
passwordVisible: false,
task:null
};
},
......@@ -364,7 +365,17 @@
handleInput(event, refresh) {
// should not emit input during composition
// see: https://github.com/ElemeFE/element/issues/10516
if (this.isComposing || (this.lazy && !refresh)) return;
//console.log(123, event.target.value);
//console.log(this.isComposing, this.lazy, !refresh);
if (this.isComposing || (this.lazy && !refresh)){
this.isInput = true
let _this = this
clearTimeout(_this.task)
_this.task = setTimeout(() => {
this.handleInput(event, true);
}, 1500);
return;
}
// hack for https://github.com/ElemeFE/element/issues/8548
// should remove the following line when we don't support IE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment