Prevent users from changing the disabled option (#5344)
This commit is contained in:
parent
1c4e1af7c3
commit
ba93bf7478
|
@ -49,6 +49,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggle() {
|
toggle() {
|
||||||
|
if (this.disabled) return;
|
||||||
this.$emit('change', !this.checked);
|
this.$emit('change', !this.checked);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue