Prevent users from changing the disabled option (#5344)

This commit is contained in:
Aya Morisawa 2019-08-27 02:44:01 +09:00 committed by syuilo
parent b0a187a509
commit 6342f4770b

View file

@ -49,6 +49,7 @@ export default Vue.extend({
},
methods: {
toggle() {
if (this.disabled) return;
this.$emit('change', !this.checked);
}
}