An element is interactable if it has a click event listener (#311)

This commit is contained in:
Kerem Yilmaz
2024-05-13 22:26:24 -07:00
committed by GitHub
parent 9f1c679e09
commit 4f814f5aec

View File

@@ -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;
}