From a09d855f274ceda1baf67780f6903efdb229843e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:17:51 +0300 Subject: [PATCH] =?UTF-8?q?Revert=20"Fixed=20#15233=20-=20Dropdown=20|=20D?= =?UTF-8?q?ropdown=20in=20Table=20Filter=20Menu=20Fails=20to=20Appl?= =?UTF-8?q?=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/table/table.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 4d73648c27f..346db11b307 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -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; });