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 @@ -153,13 +153,6 @@ function queryAllByRole(
153153 // don't care if aria attributes are unspecified
154154 return true
155155 } )
156- . filter ( element => {
157- return hidden === false
158- ? isInaccessible ( element , {
159- isSubtreeInaccessible : cachedIsSubtreeInaccessible ,
160- } ) === false
161- : true
162- } )
163156 . filter ( element => {
164157 if ( name === undefined ) {
165158 // Don't care
@@ -176,6 +169,13 @@ function queryAllByRole(
176169 text => text ,
177170 )
178171 } )
172+ . filter ( element => {
173+ return hidden === false
174+ ? isInaccessible ( element , {
175+ isSubtreeInaccessible : cachedIsSubtreeInaccessible ,
176+ } ) === false
177+ : true
178+ } )
179179}
180180
181181function makeRoleSelector ( role , exact , customNormalizer ) {
You can’t perform that action at this time.
0 commit comments