mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fixed aria-activedescendant for button element
This commit is contained in:
parent
9cf0f21efd
commit
b2d50f9ffc
4
ui/jquery.ui.selectmenu.js
vendored
4
ui/jquery.ui.selectmenu.js
vendored
@ -156,7 +156,7 @@ $.widget( "ui.selectmenu", {
|
||||
that.focus = item.index;
|
||||
|
||||
// Set ARIA active decendent
|
||||
that.button.attr( "aria-activedescendant", item.element.attr( "id" ) );
|
||||
that.button.attr( "aria-activedescendant", that.menuItems.eq( item.index ).find( "a" ).attr( "id" ) );
|
||||
|
||||
},
|
||||
// set ARIA role
|
||||
@ -383,7 +383,7 @@ $.widget( "ui.selectmenu", {
|
||||
// change ARIA attr
|
||||
this.menuItems.find( "a" ).attr( "aria-selected", false );
|
||||
this._getSelectedItem().find( "a" ).attr( "aria-selected", true );
|
||||
this.button.attr( "aria-activedescendant", item.element.attr( "id" ) );
|
||||
this.button.attr( "aria-activedescendant", this.menuItems.eq( item.index ).find( "a" ).attr( "id" ) );
|
||||
},
|
||||
|
||||
_setOption: function( key, value ) {
|
||||
|
Loading…
Reference in New Issue
Block a user