File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ const isInteractiveElement = (
164
164
) : boolean => {
165
165
// Do not test higher level JSX components, as we do not know what
166
166
// low-level DOM element this maps to.
167
- if ( [ ... dom . keys ( ) ] . indexOf ( tagName ) === - 1 ) {
167
+ if ( ! dom . keys ( tagName ) ) {
168
168
return false ;
169
169
}
170
170
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const nonInteractiveElementRoles = [...elementRoles.entries()]
43
43
roleSet ,
44
44
] ,
45
45
) => {
46
- if ( [ ...roleSet . keys ( ) ] . every (
46
+ if ( [ ...roleSet ] . every (
47
47
( role ) : boolean => nonInteractiveRoles . has ( role ) ,
48
48
) ) {
49
49
accumulator . set ( elementSchema , roleSet ) ;
@@ -161,7 +161,7 @@ const isNonInteractiveElement = (
161
161
) : boolean => {
162
162
// Do not test higher level JSX components, as we do not know what
163
163
// low-level DOM element this maps to.
164
- if ( [ ... dom . keys ( ) ] . indexOf ( tagName ) === - 1 ) {
164
+ if ( ! dom . has ( tagName ) ) {
165
165
return false ;
166
166
}
167
167
You can’t perform that action at this time.
0 commit comments