fix interactable parsing (#2228)
This commit is contained in:
@@ -603,6 +603,10 @@ function isInteractable(element, hoverStylesMap) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hasWidgetRole(element)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// element with pointer-events: none should not be considered as interactable
|
// element with pointer-events: none should not be considered as interactable
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events#none
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events#none
|
||||||
const elementPointerEvent = getElementComputedStyle(element)?.pointerEvents;
|
const elementPointerEvent = getElementComputedStyle(element)?.pointerEvents;
|
||||||
@@ -610,10 +614,6 @@ function isInteractable(element, hoverStylesMap) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasWidgetRole(element)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isInteractableInput(element)) {
|
if (isInteractableInput(element)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user