Dom tree updates (#632)

This commit is contained in:
Kerem Yilmaz
2024-07-23 04:02:21 -07:00
committed by GitHub
parent 0ef3fabc4c
commit 24a571ac49

View File

@@ -386,11 +386,16 @@ function isInteractable(element) {
return true;
}
if (tagName === "div" || tagName === "img" || tagName === "span") {
if (
tagName === "div" ||
tagName === "img" ||
tagName === "span" ||
tagName === "a" ||
tagName === "i"
) {
const computedStyle = window.getComputedStyle(element);
const hasPointer = computedStyle.cursor === "pointer";
const hasCursor = computedStyle.cursor === "cursor";
return hasPointer || hasCursor;
return hasPointer;
}
// support listbox and options underneath it