diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 702f52f3a9..3f9a054675 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -549,7 +549,9 @@ export default class Element extends Node { } // aria-activedescendant-has-tabindex - if (name === 'aria-activedescendant' && !is_interactive_element(this.name, attribute_map) && !attribute_map.has('tabindex')) { + if (name === 'aria-activedescendant' + && element_interactivity(this.name, attribute_map) !== ElementInteractivity.Interactive + && !attribute_map.has('tabindex')) { component.warn(attribute, compiler_warnings.a11y_aria_activedescendant_has_tabindex); } }