Skip to content

Commit

Permalink
Revert "Fixed #15233 - Dropdown | Dropdown in Table Filter Menu Fails…
Browse files Browse the repository at this point in the history
… to Appl…"
  • Loading branch information
cetincakiroglu authored Apr 18, 2024
1 parent 0695b55 commit a09d855
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 a09d855

Please sign in to comment.