File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ $.widget( "ui.selectmenu", {
156
156
that . focus = item . index ;
157
157
158
158
// Set ARIA active decendent
159
- that . button . attr ( "aria-activedescendant" , item . element . attr ( "id" ) ) ;
159
+ that . button . attr ( "aria-activedescendant" , that . menuItems . eq ( item . index ) . find ( "a" ) . attr ( "id" ) ) ;
160
160
161
161
} ,
162
162
// set ARIA role
@@ -383,7 +383,7 @@ $.widget( "ui.selectmenu", {
383
383
// change ARIA attr
384
384
this . menuItems . find ( "a" ) . attr ( "aria-selected" , false ) ;
385
385
this . _getSelectedItem ( ) . find ( "a" ) . attr ( "aria-selected" , true ) ;
386
- this . button . attr ( "aria-activedescendant" , item . element . attr ( "id" ) ) ;
386
+ this . button . attr ( "aria-activedescendant" , this . menuItems . eq ( item . index ) . find ( "a" ) . attr ( "id" ) ) ;
387
387
} ,
388
388
389
389
_setOption : function ( key , value ) {
You can’t perform that action at this time.
0 commit comments