add svg into interactable detecting (#1917)

This commit is contained in:
Shuchang Zheng
2025-03-10 12:04:45 -07:00
committed by GitHub
parent aa83da1cba
commit 785c2f0626
3 changed files with 11 additions and 5 deletions

View File

@@ -733,7 +733,8 @@ function isInteractable(element, hoverStylesMap) {
tagName === "i" ||
tagName === "li" ||
tagName === "p" ||
tagName === "td"
tagName === "td" ||
tagName === "svg"
) {
const elementCursor = getElementComputedStyle(element)?.cursor;
if (elementCursor === "pointer") {