Skip to content

Commit

Permalink
fix syntax for include
Browse files Browse the repository at this point in the history
  • Loading branch information
sangikhan29 committed Aug 15, 2023
1 parent 00099a7 commit 01bd8bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/isInteractiveElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/util/isNonInteractiveElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01bd8bd

Please sign in to comment.