Fixed #3702 - DataTable and TreeTable: Column sorting not working correctly when using custom header template
parent
9d0c38f870
commit
8c6d4d56d7
|
@ -466,7 +466,8 @@ export default {
|
||||||
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' ||
|
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' ||
|
||||||
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' ||
|
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' ||
|
||||||
DomHandler.getAttribute(targetNode.parentElement, '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();
|
DomHandler.clearSelection();
|
||||||
|
|
||||||
|
|
|
@ -364,7 +364,8 @@ export default {
|
||||||
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' ||
|
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' ||
|
||||||
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' ||
|
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' ||
|
||||||
DomHandler.getAttribute(targetNode.parentElement, '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();
|
DomHandler.clearSelection();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue