Explorar o código

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

lisheng %!s(int64=6) %!d(string=hai) anos
pai
achega
208a78786f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/switch/src/component.vue

+ 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"