Update dom script with angular bindings (#707)

This commit is contained in:
Kerem Yilmaz
2024-08-14 22:52:58 +03:00
committed by GitHub
parent 1c9e919792
commit faf939d29d

View File

@@ -270,6 +270,12 @@ function isScriptOrStyle(element) {
return tagName === "script" || tagName === "style";
}
function hasAngularClickBinding(element) {
return (
element.hasAttribute("ng-click") || element.hasAttribute("data-ng-click")
);
}
function hasWidgetRole(element) {
const role = element.getAttribute("role");
if (!role) {
@@ -389,6 +395,10 @@ function isInteractable(element) {
return true;
}
if (tagName === "div" && hasAngularClickBinding(element)) {
return true;
}
// support listbox and options underneath it
// div element should be checked here before the css pointer
if (