File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -661,6 +661,7 @@ class Autocomplete extends BaseComponent {
661
661
dropdownDiv . classList . add ( CLASS_NAME_DROPDOWN )
662
662
dropdownDiv . role = 'listbox'
663
663
dropdownDiv . setAttribute ( 'aria-labelledby' , this . _uniqueId )
664
+ dropdownDiv . setAttribute ( 'id' , `${ this . _uniqueId } -listbox` )
664
665
665
666
const optionsDiv = document . createElement ( 'div' )
666
667
optionsDiv . classList . add ( CLASS_NAME_OPTIONS )
@@ -674,6 +675,8 @@ class Autocomplete extends BaseComponent {
674
675
675
676
const { container } = this . _config
676
677
if ( container ) {
678
+ this . _inputElement . setAttribute ( 'aria-owns' , `${ this . _uniqueId } -listbox` )
679
+ dropdownDiv . id = `${ this . _uniqueId } -listbox`
677
680
container . append ( dropdownDiv )
678
681
} else {
679
682
this . _element . append ( dropdownDiv )
You can’t perform that action at this time.
0 commit comments