Skip to content

Commit

Permalink
Fixed #4268 - Datatable: Menu Filter Icon Click Causes Column to Sort
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 15, 2023
1 parent 46be178 commit f7f87cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,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-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]'))
) {
DomHandler.clearSelection();
Expand Down

0 comments on commit f7f87cc

Please sign in to comment.