mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
Switch: fix toggling value error (#19473)
Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@hotmail.com>
This commit is contained in:
@@ -134,7 +134,9 @@
|
||||
this.$nextTick(() => {
|
||||
// set input's checked property
|
||||
// in case parent refuses to change component's value
|
||||
this.$refs.input.checked = this.checked;
|
||||
if (this.$refs.input) {
|
||||
this.$refs.input.checked = this.checked;
|
||||
}
|
||||
});
|
||||
},
|
||||
setBackgroundColor() {
|
||||
|
||||
Reference in New Issue
Block a user