From 0fba0f0e91053506cd867e6bff0012248fc84d71 Mon Sep 17 00:00:00 2001 From: Rohit Date: Sat, 23 Aug 2025 19:45:21 +0530 Subject: [PATCH] feat: strict dialog check --- src/helpers/clientSelectorGenerator.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/helpers/clientSelectorGenerator.ts b/src/helpers/clientSelectorGenerator.ts index 3a4e1385..184a199b 100644 --- a/src/helpers/clientSelectorGenerator.ts +++ b/src/helpers/clientSelectorGenerator.ts @@ -4128,22 +4128,6 @@ class ClientSelectorGenerator { dialogElements.push(element); continue; } - - const classList = element.classList.toString().toLowerCase(); - const id = (element.id || "").toLowerCase(); - - if ( - classList.includes("modal") || - classList.includes("dialog") || - classList.includes("popup") || - classList.includes("overlay") || - id.includes("modal") || - id.includes("dialog") || - id.includes("popup") - ) { - dialogElements.push(element); - continue; - } } return dialogElements;