Selectmenu: make sure menu is refreshed at least once before opening

This commit is contained in:
Felix Nagel 2013-03-07 19:34:13 +01:00
parent 890881d2f8
commit f08b0af1be

View File

@ -187,6 +187,9 @@ $.widget( "ui.selectmenu", {
if ( this.options.disabled ) {
return;
}
if ( !this.menuItems ) {
this.refresh();
}
this.isOpen = true;
this._toggleAttr();