An element is interactable if it has a click event listener (#311)
This commit is contained in:
@@ -358,7 +358,8 @@ function isInteractable(element) {
|
|||||||
if (
|
if (
|
||||||
element.hasAttribute("onclick") ||
|
element.hasAttribute("onclick") ||
|
||||||
element.isContentEditable ||
|
element.isContentEditable ||
|
||||||
element.hasAttribute("jsaction")
|
element.hasAttribute("jsaction") ||
|
||||||
|
getEventListeners(element).click !== undefined
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user