We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989b35d commit ca70003Copy full SHA for ca70003
src/lib/queryAdvise.js
@@ -20,9 +20,7 @@ export function getData({ rootNode, element }) {
20
return {
21
role: element.getAttribute('aria-hidden')
22
? undefined
23
- : element.getAttribute('role') ||
24
- // input's require a type for the role
25
- (tagName === 'INPUT' && type !== 'text' ? '' : getRole(element)),
+ : element.getAttribute('role') || getRole(element),
26
name: computeAccessibleName(element),
27
tagName: tagName,
28
type: type,
0 commit comments