Fixed #3702 - DataTable and TreeTable: Column sorting not working correctly when using custom header template

pull/4258/head
Tuğçe Küçükoğlu 2023-08-10 16:39:14 +03:00
parent 9d0c38f870
commit 8c6d4d56d7
2 changed files with 4 additions and 2 deletions

View File

@ -466,7 +466,8 @@ export default {
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' ||
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' ||
DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' ||
DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon'
DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' ||
targetNode.closest('[data-p-sortable-column="true"]')
) {
DomHandler.clearSelection();

View File

@ -364,7 +364,8 @@ export default {
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' ||
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' ||
DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' ||
DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon'
DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' ||
targetNode.closest('[data-p-sortable-column="true"]')
) {
DomHandler.clearSelection();