Commit 472b7242 authored by 杨奕's avatar 杨奕 Committed by GitHub

Switch: fix click event triggering twice (#9760)

parent d46c0ed0
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
this.$refs.core.style.backgroundColor = newColor; this.$refs.core.style.backgroundColor = newColor;
}, },
switchValue() { switchValue() {
this.$refs.input.click(); !this.switchDisabled && this.handleChange();
}, },
getMigratingConfig() { getMigratingConfig() {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment