checkbox check or uncheck issue (#1850)
This commit is contained in:
@@ -601,6 +601,13 @@ function isInteractable(element, hoverStylesMap) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// element with pointer-events: none should not be considered as interactable
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events#none
|
||||||
|
const elementPointerEvent = getElementComputedStyle(element)?.pointerEvents;
|
||||||
|
if (elementPointerEvent === "none") {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (hasWidgetRole(element)) {
|
if (hasWidgetRole(element)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user