]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: Remove broken tabindex code
authorScott González <scott.gonzalez@gmail.com>
Wed, 22 Oct 2014 16:27:37 +0000 (12:27 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 5 Feb 2015 14:00:46 +0000 (09:00 -0500)
(cherry picked from commit 1fb08790a6cae0ac861df0373a303d72ed0e8d71)

ui/selectmenu.js

index 26456b0dc1b93812253653b75f42f5ab17e580fd..14c81efee87b1bdf5f0994e021f6f1495ef93d66 100644 (file)
@@ -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 = $( "<span>", {
                        "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",