Merge pull request #396 from alibaba/fix/interactive-aria-attrs-detection

fix(controller): detect elements with ARIA state attrs as interactive
This commit is contained in:
Simon
2026-04-03 20:22:09 +08:00
committed by GitHub

View File

@@ -1334,6 +1334,10 @@ export default (
if (element.hasAttribute('onclick') || typeof element.onclick === 'function') { if (element.hasAttribute('onclick') || typeof element.onclick === 'function') {
return true return true
} }
// ARIA state attributes imply the element manages its own interaction state
if (hasInteractiveAria(element)) {
return true
}
// return false // return false