Skip to content

Commit 71132ac

Browse files
committed
update tag.vue
1 parent 6599aa7 commit 71132ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/tag/src/tag.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
methods: {
1414
handleClose(event) {
15+
event.stopPropagation();
1516
this.$emit('close', event);
1617
}
1718
},
@@ -28,7 +29,7 @@
2829
const tagEl = (<span class={classes} style={{backgroundColor: this.color}}>
2930
{ this.$slots.default }
3031
{
31-
this.closable && <i class="el-tag__close el-icon-close" click="handleClose"></i>
32+
this.closable && <i class="el-tag__close el-icon-close" on-click={this.handleClose}></i>
3233
}
3334
</span>);
3435

0 commit comments

Comments
 (0)