Commit d94640353240d37b16ea7a7cfb4ae35cef500a51

Authored by 梁灏
1 parent 3a9e8865

fixed unit test

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/components/date-picker/picker.vue
@@ -569,9 +569,9 @@ @@ -569,9 +569,9 @@
569 handleInputMouseleave () { 569 handleInputMouseleave () {
570 this.showClose = false; 570 this.showClose = false;
571 }, 571 },
572 - handleIconClick (event) { 572 + handleIconClick (e) {
573 if (this.showClose) { 573 if (this.showClose) {
574 - event.stopPropagation(); 574 + if (e) e.stopPropagation();
575 this.handleClear(); 575 this.handleClear();
576 } else if (!this.disabled) { 576 } else if (!this.disabled) {
577 this.handleFocus(); 577 this.handleFocus();