Skip to content

Commit

Permalink
Merge pull request #15298 from primefaces/revert-15280-issue-15233
Browse files Browse the repository at this point in the history
Revert "Fixed #15233 - Dropdown | Dropdown in Table Filter Menu Fails to Appl…"
  • Loading branch information
cetincakiroglu authored Apr 18, 2024
2 parents 0695b55 + a09d855 commit c4f794c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5631,13 +5631,9 @@ export class ColumnFilter implements AfterContentInit {
const dialogElements = document.querySelectorAll('[role="dialog"]');
const targetIsColumnFilterMenuButton = event.target.closest('.p-column-filter-menu-button');

dialogElements.forEach((dialogElement) => {
const appendToBodyExists = dialogElement.querySelector('[appendto="body"]') !== null

if (this.overlayVisible && this.isOutsideClicked(event) && !appendToBodyExists && (targetIsColumnFilterMenuButton || dialogElements?.length <= 1)) {
this.hide();
}
});
if (this.overlayVisible && this.isOutsideClicked(event) && (targetIsColumnFilterMenuButton || dialogElements?.length <= 1)) {
this.hide();
}

this.selfClick = false;
});
Expand Down

0 comments on commit c4f794c

Please sign in to comment.