Skip to content

Commit

Permalink
Fix combobox aria-controls attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Samy0412 committed Nov 11, 2024
1 parent 1d07a31 commit 8a27186
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function useComboboxTargetProps({
'aria-haspopup': 'listbox',
'aria-expanded':
(withExpandedAttribute && !!(ctx.store.listId && ctx.store.dropdownOpened)) || undefined,
'aria-controls': ctx.store.listId,
'aria-controls': ctx.store.dropdownOpened ? ctx.store.listId : undefined,
'aria-activedescendant': ctx.store.dropdownOpened
? selectedOptionId || undefined
: undefined,
Expand Down

0 comments on commit 8a27186

Please sign in to comment.