From df5cc6fd4a21fb35e9f124e8aac9abbce7ca0a5a Mon Sep 17 00:00:00 2001 From: lisheng Date: Mon, 27 May 2019 14:02:24 +0800 Subject: [PATCH] Switch: Label with el-switch repeating event(fix #14959) (#15178) --- packages/switch/src/component.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/switch/src/component.vue b/packages/switch/src/component.vue index 167e1d9984..88c5483ee5 100644 --- a/packages/switch/src/component.vue +++ b/packages/switch/src/component.vue @@ -5,7 +5,7 @@ role="switch" :aria-checked="checked" :aria-disabled="switchDisabled" - @click="switchValue" + @click.prevent="switchValue" >