From 1c1988d1ec7fb8613d18330ab4d9d225b1ded006 Mon Sep 17 00:00:00 2001 From: Joshua Heller Date: Fri, 7 Feb 2020 15:59:45 +0100 Subject: [PATCH] fix header event --- src/components/VuetableRowHeader.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/VuetableRowHeader.vue b/src/components/VuetableRowHeader.vue index 37846be7..87066928 100644 --- a/src/components/VuetableRowHeader.vue +++ b/src/components/VuetableRowHeader.vue @@ -11,7 +11,6 @@ :key="fieldIndex" :class="headerClass('vuetable-th-component', field)" :style="{width: field.width}" - @vuetable:header-event="vuetable.onHeaderEvent" @click="onColumnHeaderClicked(field, $event)" > @@ -45,7 +44,7 @@ import VuetableColGutter from './VuetableColGutter' export default { components: { - 'vuetable-field-checkbox': VuetableFieldCheckbox, + 'vuetable-field-checkbox': VuetableFieldCheckbox, 'vuetable-field-handle' : VuetableFieldHandle, 'vuetable-field-sequence': VuetableFieldSequence, VuetableColGutter @@ -188,6 +187,7 @@ export default { onColumnHeaderClicked (field, event) { this.vuetable.orderBy(field, event) + this.vuetable.onHeaderEvent(field, event) } } }