Skip to content
Permalink
Browse files

Selectmenu: improved event handling, fixed tabindex when disabled

  • Loading branch information...
fnagel committed Oct 12, 2011
1 parent c0864df commit 7b9813c40ec7f0abde791d97b9343b075ecd3ce8
Showing with 2 additions and 3 deletions.
  1. +2 −3 ui/jquery.ui.selectmenu.js
@@ -302,8 +302,7 @@ $.widget( "ui.selectmenu", {
event.stopImmediatePropagation();
},
click: function( event ) {
// return false needed to prevent browser from following the anchor
return false;
event.preventDefault();
},
keydown: function( event ) {
switch (event.keyCode) {
@@ -367,7 +366,7 @@ $.widget( "ui.selectmenu", {
this.button.attr( "tabindex", -1 );
} else {
this.element.removeAttr( "disabled" );
this.button.attr( "tabindex", 1 );
this.button.attr( "tabindex", 0 );
}
this.menu.attr( "aria-disabled", value );
this.close();

0 comments on commit 7b9813c

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