Selectmenu: backfall for initial refresh when menu is opened

This commit is contained in:
Felix Nagel
2012-02-24 22:39:11 +01:00
parent b474a5d143
commit 058cba236f

View File

@@ -193,6 +193,11 @@ $.widget( "ui.selectmenu", {
this._toggleButtonStyle();
// make sure menu is refreshed on first init (needed at least for IE9)
if ( this.isOpen === undefined ) {
this.button.trigger( "focus" );
}
this.menuWrap.addClass( 'ui-selectmenu-open' );
this.menu.attr("aria-hidden", false);
this.button.attr("aria-expanded", true);