Dom tree updates (#632)
This commit is contained in:
@@ -386,11 +386,16 @@ function isInteractable(element) {
|
|||||||
return true;
|
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 computedStyle = window.getComputedStyle(element);
|
||||||
const hasPointer = computedStyle.cursor === "pointer";
|
const hasPointer = computedStyle.cursor === "pointer";
|
||||||
const hasCursor = computedStyle.cursor === "cursor";
|
return hasPointer;
|
||||||
return hasPointer || hasCursor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// support listbox and options underneath it
|
// support listbox and options underneath it
|
||||||
|
|||||||
Reference in New Issue
Block a user