fix(controller): treat interactive with aria as distinct

This commit is contained in:
Simon
2026-04-03 20:17:39 +08:00
parent 148bdb6839
commit 4272939217

View File

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