From 01311d74de6e352447bc2acb8cc5a81ad23ae53a Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Sun, 7 Feb 2021 02:51:05 +0300 Subject: [PATCH] Restore clickable sort headers --- src/components/datatable/DataTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 9732fa6f6..ba6adc23c 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -490,7 +490,7 @@ export default { const targetNode = event.target; const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field'); - if (DomHandler.hasClass(targetNode, 'p-sortable-column') || DomHandler.hasClass(targetNode, 'p-column-title') + if (DomHandler.hasClass(targetNode, 'p-sortable-column') || DomHandler.hasClass(targetNode, 'p-column-title') || DomHandler.hasClass(targetNode, 'p-column-header-content') || DomHandler.hasClass(targetNode, 'p-sortable-column-icon') || DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')) { DomHandler.clearSelection();