Skip to content

Commit 208a787

Browse files
FAKER-AluckyCao
authored andcommitted
Switch: Label with el-switch repeating event(fix ElemeFE#14959) (ElemeFE#15178)
1 parent 150bd70 commit 208a787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/switch/src/component.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
role="switch"
66
:aria-checked="checked"
77
:aria-disabled="switchDisabled"
8-
@click="switchValue"
8+
@click.prevent="switchValue"
99
>
1010
<input
1111
class="el-switch__input"

0 commit comments

Comments
 (0)