mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: update button text when selected option is added
This commit is contained in:
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@@ -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" ) );
|
||||
|
||||
Reference in New Issue
Block a user