Commit 473ef53f authored by Edwin Betancourt's avatar Edwin Betancourt Committed by GitHub

Switch: fix toggling value error (#19473)

Co-authored-by: default avatarEdwin Betancourt <EdwinBetanc0urt@hotmail.com>
parent 55bac06f
......@@ -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() {
......
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