fix filter pick issue (#1577)

This commit is contained in:
Shuchang Zheng
2025-01-16 03:52:08 -08:00
committed by GitHub
parent 92c6fddc9b
commit 32f9c19385

View File

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