Selectmenu: fixed disabled option

This commit is contained in:
Felix Nagel 2011-10-17 22:04:54 +02:00
parent 31ccf10698
commit c31e6e8ffe

View File

@ -371,6 +371,7 @@ $.widget( "ui.selectmenu", {
if ( value ) { if ( value ) {
this.element.attr( "disabled", "disabled" ); this.element.attr( "disabled", "disabled" );
this.button.attr( "tabindex", -1 ); this.button.attr( "tabindex", -1 );
this.close();
} else { } else {
this.element.removeAttr( "disabled" ); this.element.removeAttr( "disabled" );
this.button.attr( "tabindex", 0 ); this.button.attr( "tabindex", 0 );