Stop Progagation when click clear date icon

This commit is contained in:
梁灏 2018-09-18 11:03:10 +08:00
parent 12e19b82d8
commit edc767a624

View file

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