From b84cd7e686c0e3cd924dbe48eada7de53ed09750 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Mon, 29 Apr 2013 22:04:56 +0200 Subject: [PATCH] Selectmenu: simplify tabindex attribute setting on button create --- ui/jquery.ui.selectmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index bc9ab61f5..3533579e2 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -74,7 +74,7 @@ $.widget( "ui.selectmenu", { // Create button this.button = $( "", { "class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all", - tabindex: ( tabindex ? tabindex : this.options.disabled ? -1 : 0 ), + tabindex: tabindex || this.options.disabled ? -1 : 0, id: this.ids.button, width: this.element.outerWidth(), role: "combobox", -- 2.39.5