We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc9364 commit aeb7f4aCopy full SHA for aeb7f4a
src/queries/role.js
@@ -133,13 +133,6 @@ function queryAllByRole(
133
// don't care if aria attributes are unspecified
134
return true
135
})
136
- .filter(element => {
137
- return hidden === false
138
- ? isInaccessible(element, {
139
- isSubtreeInaccessible: cachedIsSubtreeInaccessible,
140
- }) === false
141
- : true
142
- })
143
.filter(element => {
144
if (name === undefined) {
145
// 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,
+ }) === false
+ : true
+ })
159
}
160
161
const getMultipleError = (c, role, {name} = {}) => {
0 commit comments