hardcode a hover style parsing (#876)

This commit is contained in:
LawyZheng
2024-09-25 02:01:26 +08:00
committed by GitHub
parent d67aaeffb0
commit 7e58ebca85

View File

@@ -457,8 +457,13 @@ function isInteractable(element) {
tagName === "i"
) {
const computedStyle = window.getComputedStyle(element);
const hasPointer = computedStyle.cursor === "pointer";
return hasPointer;
if (computedStyle.cursor === "pointer") {
return true;
}
// FIXME: hardcode to fix the bug about hover style now
if (element.className.toString().includes("hover:cursor-pointer")) {
return true;
}
}
return false;