fix angular select bug (#831)
This commit is contained in:
@@ -418,8 +418,10 @@ function isInteractable(element) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tagName === "div" && hasAngularClickBinding(element)) {
|
if (tagName === "div" || tagName === "span") {
|
||||||
return true;
|
if (hasAngularClickBinding(element)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// support listbox and options underneath it
|
// support listbox and options underneath it
|
||||||
@@ -562,12 +564,7 @@ const isAngularDropdown = (element) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const tagName = element.tagName.toLowerCase();
|
const tagName = element.tagName.toLowerCase();
|
||||||
// TODO: some angular might use <span> to trigger dropdown menu
|
if (tagName === "input" || tagName === "span") {
|
||||||
// if (tagName === "span") {
|
|
||||||
// ...
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (tagName === "input") {
|
|
||||||
const ariaLabel = element.hasAttribute("aria-label")
|
const ariaLabel = element.hasAttribute("aria-label")
|
||||||
? element.getAttribute("aria-label").toLowerCase()
|
? element.getAttribute("aria-label").toLowerCase()
|
||||||
: "";
|
: "";
|
||||||
|
|||||||
Reference in New Issue
Block a user