diff options
author | Felix Nagel <info@felixnagel.com> | 2011-12-22 03:05:49 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2011-12-22 03:05:49 +0100 |
commit | 6d0c7d8e88361bc5605950aa925316d37a42d89b (patch) | |
tree | 0b06f710543c3a5542c1656de754d5a26472cd1e /ui | |
parent | 1538f6337b373bc643b380c7aba694ee226cea4b (diff) | |
download | jquery-ui-6d0c7d8e88361bc5605950aa925316d37a42d89b.tar.gz jquery-ui-6d0c7d8e88361bc5605950aa925316d37a42d89b.zip |
Selectmenu: improved ARIA handling (follow-up)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index dd546ee29..0592c58d3 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -171,10 +171,10 @@ $.widget( "ui.selectmenu", { this._renderMenu( this.menu, this.items ); this.menu.menu( "refresh" ); - this.menu.menu( "focus", null, this._getSelectedItem() ); // adjust ARIA this.menu.find( "li" ).not( '.ui-selectmenu-optgroup' ).find( 'a' ).attr( 'role', 'option' ); + this.menu.attr( "aria-activedescendant" , this.menu.find( "li.ui-menu-item a" ).eq( this.element[0].selectedIndex ).attr( "id" ) ); if ( this.options.dropdown ) { this.menu |