Skip to content
Permalink
Browse files

Selectmenu: update button text when selected option is added

  • Loading branch information...
fnagel committed Aug 31, 2013
1 parent 24c2932 commit 67f04e4e42e67c1b73a97efc1c46cf986cec4794
Showing with 2 additions and 0 deletions.
  1. +2 −0 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" ) );

0 comments on commit 67f04e4

Please sign in to comment.
You can’t perform that action at this time.