Switch: fix click event triggering twice (#9760)

pull/9766/head
杨奕 2018-02-09 19:04:11 +08:00 committed by GitHub
parent d46c0ed01c
commit 472b72423e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {