Revert "fix filter pick issue" (#1580)
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user