fix filter pick issue (#1577)
This commit is contained in:
@@ -804,12 +804,7 @@ 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()
|
||||||
: "";
|
: "";
|
||||||
const hasExpanded = element.hasAttribute("aria-expanded");
|
return tagName === "button" && type === "button" && haspopup === "listbox";
|
||||||
return (
|
|
||||||
tagName === "button" &&
|
|
||||||
type === "button" &&
|
|
||||||
(hasExpanded || haspopup === "listbox")
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const isSelect2Dropdown = (element) => {
|
const isSelect2Dropdown = (element) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user