mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: improved event handling, fixed tabindex when disabled
This commit is contained in:
parent
c0864df4d7
commit
7b9813c40e
5
ui/jquery.ui.selectmenu.js
vendored
5
ui/jquery.ui.selectmenu.js
vendored
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user