Skip to content
Permalink
Browse files

Selectmenu: fixed aria-activedescendant for button element

  • Loading branch information...
fnagel committed Oct 25, 2012
1 parent 9cf0f21 commit b2d50f9ffc7d317da1ccc01a809e10624ff1933e
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.selectmenu.js
@@ -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 ) {

0 comments on commit b2d50f9

Please sign in to comment.
You can’t perform that action at this time.