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.
2 parents ab9a7ba + 0f51cdb commit 9fbf2e6Copy full SHA for 9fbf2e6
src/autocomplete.ts
@@ -54,8 +54,12 @@ export default class Autocomplete {
54
}
55
56
this.results.hidden = true
57
+
58
// @jscholes recommends a generic "results" label as the results are already related to the combobox, which is properly labelled
- this.results.setAttribute('aria-label', 'results')
59
+ if (!this.results.getAttribute('aria-label')) {
60
+ this.results.setAttribute('aria-label', 'results')
61
+ }
62
63
this.input.setAttribute('autocomplete', 'off')
64
this.input.setAttribute('spellcheck', 'false')
65
0 commit comments