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 (
|
||||
element.hasAttribute("onclick") ||
|
||||
element.isContentEditable ||
|
||||
element.hasAttribute("jsaction")
|
||||
element.hasAttribute("jsaction") ||
|
||||
getEventListeners(element).click !== undefined
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user