Permalink
Browse files

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

  • Loading branch information...
fnagel committed Mar 7, 2013
1 parent 890881d commit f08b0af1be75fe55c68e802810bd06b4424227bc
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/jquery.ui.selectmenu.js
@@ -187,6 +187,9 @@ $.widget( "ui.selectmenu", {
if ( this.options.disabled ) {
return;
}
+ if ( !this.menuItems ) {
+ this.refresh();
+ }
this.isOpen = true;
this._toggleAttr();

0 comments on commit f08b0af

Please sign in to comment.