add classname invisible to dropdown detection (#2069)
This commit is contained in:
@@ -2174,8 +2174,11 @@ if (window.globalDomDepthMap === undefined) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isClassNameIncludesHidden(className) {
|
function isClassNameIncludesHidden(className) {
|
||||||
// some hidden elements are with the classname like `class="select-items select-hide"`
|
// some hidden elements are with the classname like `class="select-items select-hide"` or `class="dropdown-container dropdown-invisible"`
|
||||||
return className.toLowerCase().includes("hide");
|
return (
|
||||||
|
className.toLowerCase().includes("hide") ||
|
||||||
|
className.toLowerCase().includes("invisible")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function waitForNextFrame() {
|
function waitForNextFrame() {
|
||||||
|
|||||||
Reference in New Issue
Block a user