aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-12-22 03:05:49 +0100
committerFelix Nagel <info@felixnagel.com>2011-12-22 03:05:49 +0100
commit6d0c7d8e88361bc5605950aa925316d37a42d89b (patch)
tree0b06f710543c3a5542c1656de754d5a26472cd1e /ui
parent1538f6337b373bc643b380c7aba694ee226cea4b (diff)
downloadjquery-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.js2
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