aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.selectmenu.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index bc7eae1bd..6685229d5 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -179,6 +179,8 @@ $.widget( "ui.selectmenu", {
// Make sure menu is selected item aware
this.menu.menu( "focus", null, item );
this._setAria( item.data( "ui-selectmenu-item" ) );
+
+ this._setText( this.buttonText, item.text() );
// Set disabled state
this._setOption( "disabled", !!this.element.prop( "disabled" ) );