mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: improved event handling, fixed tabindex when disabled
This commit is contained in:
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();
|
||||
|
||||
Reference in New Issue
Block a user