Commit edc767a624dc228a19a906d7e3b9a538bd16a35e
1 parent
12e19b82
Stop Progagation when click clear date icon
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/components/date-picker/picker.vue
| @@ -569,8 +569,9 @@ | @@ -569,8 +569,9 @@ | ||
| 569 | handleInputMouseleave () { | 569 | handleInputMouseleave () { |
| 570 | this.showClose = false; | 570 | this.showClose = false; |
| 571 | }, | 571 | }, |
| 572 | - handleIconClick () { | 572 | + handleIconClick (event) { |
| 573 | if (this.showClose) { | 573 | if (this.showClose) { |
| 574 | + event.stopPropagation(); | ||
| 574 | this.handleClear(); | 575 | this.handleClear(); |
| 575 | } else if (!this.disabled) { | 576 | } else if (!this.disabled) { |
| 576 | this.handleFocus(); | 577 | this.handleFocus(); |