fixed unit test

This commit is contained in:
梁灏 2018-09-18 11:13:08 +08:00
parent 3a9e8865a5
commit d946403532

View file

@ -569,9 +569,9 @@
handleInputMouseleave () { handleInputMouseleave () {
this.showClose = false; this.showClose = false;
}, },
handleIconClick (event) { handleIconClick (e) {
if (this.showClose) { if (this.showClose) {
event.stopPropagation(); if (e) e.stopPropagation();
this.handleClear(); this.handleClear();
} else if (!this.disabled) { } else if (!this.disabled) {
this.handleFocus(); this.handleFocus();