Эх сурвалжийг харах

Switch: Label with el-switch repeating event(fix #14959) (#15178)

lisheng 6 жил өмнө
parent
commit
208a78786f

+ 1 - 1
packages/switch/src/component.vue

@@ -5,7 +5,7 @@
     role="switch"
     :aria-checked="checked"
     :aria-disabled="switchDisabled"
-    @click="switchValue"
+    @click.prevent="switchValue"
   >
     <input
       class="el-switch__input"