hardcode a hover style parsing (#876)
This commit is contained in:
@@ -457,8 +457,13 @@ function isInteractable(element) {
|
|||||||
tagName === "i"
|
tagName === "i"
|
||||||
) {
|
) {
|
||||||
const computedStyle = window.getComputedStyle(element);
|
const computedStyle = window.getComputedStyle(element);
|
||||||
const hasPointer = computedStyle.cursor === "pointer";
|
if (computedStyle.cursor === "pointer") {
|
||||||
return hasPointer;
|
return true;
|
||||||
|
}
|
||||||
|
// FIXME: hardcode to fix the bug about hover style now
|
||||||
|
if (element.className.toString().includes("hover:cursor-pointer")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user