We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbc90a5 commit d3f62b3Copy full SHA for d3f62b3
packages/switch/src/component.vue
@@ -117,9 +117,7 @@
117
},
118
watch: {
119
checked() {
120
- if (this.$refs.input) {
121
- this.$refs.input.checked = this.checked;
122
- }
+ this.$refs.input.checked = this.checked;
123
if (this.activeColor || this.inactiveColor) {
124
this.setBackgroundColor();
125
}
@@ -136,7 +134,6 @@
136
134
this.$nextTick(() => {
137
135
// set input's checked property
138
// in case parent refuses to change component's value
139
140
if (this.$refs.input) {
141
this.$refs.input.checked = this.checked;
142
0 commit comments