[bugfix] Field: shouldn't emit click event when click icon (#3772)
This commit is contained in:
+7
-5
@@ -147,18 +147,20 @@ export default createComponent({
|
||||
this.$emit('click', event);
|
||||
},
|
||||
|
||||
onClickLeftIcon() {
|
||||
this.$emit('click-left-icon');
|
||||
onClickLeftIcon(event) {
|
||||
event.stopPropagation();
|
||||
this.$emit('click-left-icon', event);
|
||||
},
|
||||
|
||||
onClickRightIcon() {
|
||||
this.$emit('click-right-icon');
|
||||
onClickRightIcon(event) {
|
||||
event.stopPropagation();
|
||||
this.$emit('click-right-icon', event);
|
||||
},
|
||||
|
||||
onClear(event) {
|
||||
preventDefault(event);
|
||||
this.$emit('input', '');
|
||||
this.$emit('clear');
|
||||
this.$emit('clear', event);
|
||||
},
|
||||
|
||||
onKeypress(event) {
|
||||
|
||||
Reference in New Issue
Block a user