diff options
author | Felix Nagel <info@felixnagel.com> | 2013-03-07 19:34:13 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-03-07 19:34:13 +0100 |
commit | f08b0af1be75fe55c68e802810bd06b4424227bc (patch) | |
tree | fa9b64d625cef277f4052e8fc7513e0fce3a586d /ui/jquery.ui.selectmenu.js | |
parent | 890881d2f8af5eb6df66e61a95188a5a43997310 (diff) | |
download | jquery-ui-f08b0af1be75fe55c68e802810bd06b4424227bc.tar.gz jquery-ui-f08b0af1be75fe55c68e802810bd06b4424227bc.zip |
Selectmenu: make sure menu is refreshed at least once before opening
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 568c2e983..70099e46f 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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(); |