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 b2933b7 + 3c65963 commit f0d1d62Copy full SHA for f0d1d62
combobox-nav.js
@@ -111,9 +111,9 @@ export function navigate(
111
112
export function clearSelection(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement): void {
113
input.removeAttribute('aria-activedescendant')
114
- const target = list.querySelector('[aria-selected="true"]')
115
- if (!target) return
116
- target.setAttribute('aria-selected', 'false')
+ for (const el of list.querySelectorAll('[aria-selected="true"]')) {
+ el.setAttribute('aria-selected', 'false')
+ }
117
}
118
119
function trackComposition(event: Event): void {
0 commit comments