Revert "fix filter pick issue" (#1580)

This commit is contained in:
Shuchang Zheng
2025-01-16 05:38:28 -08:00
committed by GitHub
parent 32f9c19385
commit 0f390630a9

View File

@@ -804,7 +804,12 @@ const isDropdownButton = (element) => {
const haspopup = element.getAttribute("aria-haspopup") const haspopup = element.getAttribute("aria-haspopup")
? element.getAttribute("aria-haspopup").toLowerCase() ? element.getAttribute("aria-haspopup").toLowerCase()
: ""; : "";
return tagName === "button" && type === "button" && haspopup === "listbox"; const hasExpanded = element.hasAttribute("aria-expanded");
return (
tagName === "button" &&
type === "button" &&
(hasExpanded || haspopup === "listbox")
);
}; };
const isSelect2Dropdown = (element) => { const isSelect2Dropdown = (element) => {