We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
byRole
1 parent b6b9b5b commit 2866544Copy full SHA for 2866544
src/queries/role.js
@@ -153,13 +153,6 @@ function queryAllByRole(
153
// don't care if aria attributes are unspecified
154
return true
155
})
156
- .filter(element => {
157
- return hidden === false
158
- ? isInaccessible(element, {
159
- isSubtreeInaccessible: cachedIsSubtreeInaccessible,
160
- }) === false
161
- : true
162
- })
163
.filter(element => {
164
if (name === undefined) {
165
// Don't care
@@ -176,6 +169,13 @@ function queryAllByRole(
176
169
text => text,
177
170
)
178
171
172
+ .filter(element => {
173
+ return hidden === false
174
+ ? isInaccessible(element, {
175
+ isSubtreeInaccessible: cachedIsSubtreeInaccessible,
+ }) === false
+ : true
+ })
179
}
180
181
function makeRoleSelector(role, exact, customNormalizer) {
0 commit comments