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 4cbf43d commit 3453103Copy full SHA for 3453103
1 file changed
web-src/src/common/components/checkbox.vue
@@ -15,8 +15,7 @@
15
export default {
16
props: {
17
'value': {
18
- type: [Boolean, String, Number],
19
- default: false
+ type: [Boolean, String, Number]
20
},
21
'config': Object
22
@@ -35,6 +34,19 @@
35
34
emitValueChange() {
36
this.$emit('input', this.$refs.checkbox.checked);
37
}
+ },
38
+
39
+ watch: {
40
+ value: {
41
+ immediate: true,
42
+ handler() {
43
+ this.$nextTick(() => {
44
+ if (this.value !== this.boolValue) {
45
+ this.emitValueChange();
46
+ }
47
+ });
48
49
50
51
52
</script>
0 commit comments