Revert "An element is interactable if it has a click event listener (#1119)" (#313)

This commit is contained in:
Kerem Yilmaz
2024-05-14 00:23:43 -07:00
committed by GitHub
parent 4f814f5aec
commit 1953874717

View File

@@ -358,8 +358,7 @@ function isInteractable(element) {
if (
element.hasAttribute("onclick") ||
element.isContentEditable ||
element.hasAttribute("jsaction") ||
getEventListeners(element).click !== undefined
element.hasAttribute("jsaction")
) {
return true;
}