Skip to content

Commit

Permalink
Selectmenu: make sure menu is refreshed at least once before opening
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Mar 7, 2013
1 parent 890881d commit f08b0af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/jquery.ui.selectmenu.js
Expand Up @@ -187,6 +187,9 @@ $.widget( "ui.selectmenu", {
if ( this.options.disabled ) {
return;
}
if ( !this.menuItems ) {
this.refresh();
}

this.isOpen = true;
this._toggleAttr();
Expand Down

0 comments on commit f08b0af

Please sign in to comment.