mark readonly element as interactable (#3845)

This commit is contained in:
LawyZheng
2025-10-29 13:10:21 +08:00
committed by GitHub
parent 49fd5f3c07
commit f6145665c8
5 changed files with 88 additions and 13 deletions

View File

@@ -790,13 +790,7 @@ function isInteractableInput(element, hoverStylesMap) {
// "city", "state", "zip", "country"
// That's the reason I (Kerem) removed the valid input types check
var type = element.getAttribute("type")?.toLowerCase().trim() ?? "text";
var readOnly = isReadonlyElement(element);
return (
isHoverPointerElement(element, hoverStylesMap) ||
isReadonlyInputDropdown(element) ||
(!readOnly && type !== "hidden")
);
return isHoverPointerElement(element, hoverStylesMap) || type !== "hidden";
}
function isValidCSSSelector(selector) {