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 @@ -133,13 +133,6 @@ function queryAllByRole(
133
133
// don't care if aria attributes are unspecified
134
134
return true
135
135
} )
136
- . filter ( element => {
137
- return hidden === false
138
- ? isInaccessible ( element , {
139
- isSubtreeInaccessible : cachedIsSubtreeInaccessible ,
140
- } ) === false
141
- : true
142
- } )
143
136
. filter ( element => {
144
137
if ( name === undefined ) {
145
138
// Don't care
@@ -156,6 +149,13 @@ function queryAllByRole(
156
149
text => text ,
157
150
)
158
151
} )
152
+ . filter ( element => {
153
+ return hidden === false
154
+ ? isInaccessible ( element , {
155
+ isSubtreeInaccessible : cachedIsSubtreeInaccessible ,
156
+ } ) === false
157
+ : true
158
+ } )
159
159
}
160
160
161
161
const getMultipleError = ( c , role , { name} = { } ) => {
You can’t perform that action at this time.
0 commit comments