Selectmenu: fixed disabled state tabindex

This commit is contained in:
Felix Nagel 2011-10-12 01:26:31 +02:00
parent 469426160e
commit 9b2e0c97f0

View File

@ -74,7 +74,7 @@ $.widget( "ui.selectmenu", {
// create button
this.newelement = $( '<a />', {
href: '#' + this.ids[ 0 ],
tabindex: ( tabindex ? tabindex : this.element.attr( 'disabled' ) ? 1 : 0 ),
tabindex: ( tabindex ? tabindex : this.element.attr( 'disabled' ) ? -1 : 0 ),
id: this.ids[ 1 ],
css: {
width: this.element.outerWidth()