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;
|
||||
},
|
||||
switchValue() {
|
||||
this.$refs.input.click();
|
||||
!this.switchDisabled && this.handleChange();
|
||||
},
|
||||
getMigratingConfig() {
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue