From 821037227963b8a89bb94c4e3ee7cd52af347bfc Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 20 Dec 2023 17:32:30 +0300 Subject: [PATCH] Fixed #4988 - DataTable - sortable header with InputText --- components/lib/datatable/DataTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index 8a893562a..efbee2a85 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -477,7 +477,7 @@ export default { DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || - (targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]')) + (targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]') && !DomHandler.isClickable(event.target)) ) { DomHandler.clearSelection();