Allow p tags in cursor pointer detection (#1217)
This commit is contained in:
@@ -672,7 +672,8 @@ function isInteractable(element) {
|
|||||||
tagName === "span" ||
|
tagName === "span" ||
|
||||||
tagName === "a" ||
|
tagName === "a" ||
|
||||||
tagName === "i" ||
|
tagName === "i" ||
|
||||||
tagName === "li"
|
tagName === "li" ||
|
||||||
|
tagName === "p"
|
||||||
) {
|
) {
|
||||||
const computedStyle = window.getComputedStyle(element);
|
const computedStyle = window.getComputedStyle(element);
|
||||||
if (computedStyle.cursor === "pointer") {
|
if (computedStyle.cursor === "pointer") {
|
||||||
|
|||||||
Reference in New Issue
Block a user