mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fix _setSelected method, fixes aria-selected and unit tests
This commit is contained in:
parent
59d15809a3
commit
d0c31c188e
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -387,7 +387,7 @@ $.widget( "ui.selectmenu", {
|
||||
},
|
||||
|
||||
_setSelected: function( item ) {
|
||||
var link = item.element.find("a");
|
||||
var link = this._getSelectedItem().find("a");
|
||||
// update button text
|
||||
this.button.button( "option", "label", item.label );
|
||||
// change ARIA attr
|
||||
|
Loading…
Reference in New Issue
Block a user