From: Scott González Date: Wed, 22 Oct 2014 16:27:37 +0000 (-0400) Subject: Selectmenu: Remove broken tabindex code X-Git-Tag: 1.11.3~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c3dcf4eaccbdc35288371ea6295431bf812ee838;p=jquery-ui.git Selectmenu: Remove broken tabindex code (cherry picked from commit 1fb08790a6cae0ac861df0373a303d72ed0e8d71) --- diff --git a/ui/selectmenu.js b/ui/selectmenu.js index 26456b0dc..14c81efee 100644 --- a/ui/selectmenu.js +++ b/ui/selectmenu.js @@ -67,8 +67,7 @@ return $.widget( "ui.selectmenu", { }, _drawButton: function() { - var that = this, - tabindex = this.element.attr( "tabindex" ); + var that = this; // Associate existing label with the new button this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button ); @@ -85,7 +84,7 @@ return $.widget( "ui.selectmenu", { // Create button this.button = $( "", { "class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all", - tabindex: tabindex || this.options.disabled ? -1 : 0, + tabindex: this.options.disabled ? -1 : 0, id: this.ids.button, role: "combobox", "aria-expanded": "false",