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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user