diff --git a/src/util/isInteractiveElement.js b/src/util/isInteractiveElement.js index 792ff3c13..34aff7266 100644 --- a/src/util/isInteractiveElement.js +++ b/src/util/isInteractiveElement.js @@ -43,7 +43,7 @@ const interactiveRoles = new Set(roleKeys // The `progressbar` is descended from `widget`, but in practice, its // value is always `readonly`, so we treat it as a non-interactive role. && name !== 'progressbar' - && role.superClass.some((classes) => includes(classes, 'widget', 'window')) + && role.superClass.some((classes) => includes(classes, 'widget') || includes(classes, 'window')) ); }).concat( // 'toolbar' does not descend from widget, but it does support diff --git a/src/util/isNonInteractiveElement.js b/src/util/isNonInteractiveElement.js index 978b8b402..1fe3a3006 100644 --- a/src/util/isNonInteractiveElement.js +++ b/src/util/isNonInteractiveElement.js @@ -35,7 +35,7 @@ const nonInteractiveRoles = new Set(roleKeys // treats them both as CellRole and since gridcell is interactive, we consider // cell interactive as well. && name !== 'cell' - && !role.superClass.some((classes) => includes(classes, 'widget', 'window')) + && !role.superClass.some((classes) => includes(classes, 'widget') || includes(classes, 'window')) ); }).concat( // The `progressbar` is descended from `widget`, but in practice, its