aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-08-10 00:18:29 +0200
committerFelix Nagel <info@felixnagel.com>2011-08-10 00:18:29 +0200
commit35b4a7aee4a3e90553da22d77a32d6e35022fece (patch)
tree684c8b7b57644de2d55c805f94e1f03059204ca6
parentedee0dcba2dca932e80ce737bee3e0cd83cfdae4 (diff)
downloadjquery-ui-35b4a7aee4a3e90553da22d77a32d6e35022fece.tar.gz
jquery-ui-35b4a7aee4a3e90553da22d77a32d6e35022fece.zip
fixed: disable tab index when init from disabled select, thx to @gcko, see #136
-rw-r--r--ui/jquery.ui.selectmenu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 5a446bb74..ac09c7118 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -52,7 +52,7 @@ $.widget("ui.selectmenu", {
'id' : this.ids[ 0 ],
'role': 'button',
'href': '#',
- 'tabindex': '0' ,
+ 'tabindex': this.element.attr( 'disabled' ) ? 1 : 0,
'aria-haspopup': true,
'aria-owns': this.ids[ 1 ]
});