From 8637737a3d39fd1abb7d1722d807302fea54e2ec Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 24 Sep 2020 18:39:36 +0300 Subject: [PATCH] Disabled reorg --- src/components/datatable/HeaderCheckbox.vue | 3 +-- src/components/datatable/RowCheckbox.vue | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/datatable/HeaderCheckbox.vue b/src/components/datatable/HeaderCheckbox.vue index 06b4c6375..6c33bd5f3 100755 --- a/src/components/datatable/HeaderCheckbox.vue +++ b/src/components/datatable/HeaderCheckbox.vue @@ -13,7 +13,6 @@ export default { inheritAttrs: false, props: { - disabled: null, checked: null }, data() { @@ -23,7 +22,7 @@ export default { }, methods: { onClick(event) { - if (!this.disabled) { + if (!this.$attrs.disabled) { this.$emit('change', event); this.$refs.input.focus(); } diff --git a/src/components/datatable/RowCheckbox.vue b/src/components/datatable/RowCheckbox.vue index 8e5e276ea..438e93cee 100755 --- a/src/components/datatable/RowCheckbox.vue +++ b/src/components/datatable/RowCheckbox.vue @@ -14,7 +14,6 @@ export default { inheritAttrs: false, props: { value: null, - disabled: null, checked: null }, data() { @@ -24,7 +23,7 @@ export default { }, methods: { onClick(event) { - if (!this.disabled) { + if (!this.$attrs.disabled) { this.$emit('change', { originalEvent: event, data: this.value