mirror of https://github.com/ElemeFE/element
Switch: fix click event triggering twice (#9760)
parent
d46c0ed01c
commit
472b72423e
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue