File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -154,13 +154,6 @@ function queryAllByRole(
154
154
// don't care if aria attributes are unspecified
155
155
return true
156
156
} )
157
- . filter ( element => {
158
- return hidden === false
159
- ? isInaccessible ( element , {
160
- isSubtreeInaccessible : cachedIsSubtreeInaccessible ,
161
- } ) === false
162
- : true
163
- } )
164
157
. filter ( element => {
165
158
if ( name === undefined ) {
166
159
// Don't care
@@ -177,6 +170,13 @@ function queryAllByRole(
177
170
text => text ,
178
171
)
179
172
} )
173
+ . filter ( element => {
174
+ return hidden === false
175
+ ? isInaccessible ( element , {
176
+ isSubtreeInaccessible : cachedIsSubtreeInaccessible ,
177
+ } ) === false
178
+ : true
179
+ } )
180
180
}
181
181
182
182
function makeRoleSelector ( role , exact , customNormalizer ) {
You can’t perform that action at this time.
0 commit comments