From 690fcb3c47037df49eccaed6f87293e9abe3abec Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Fri, 20 Jul 2012 23:06:58 +0200 Subject: fixed: its now possible to have a disabled and selected option on init, see #234 --- ui/jquery.ui.selectmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/jquery.ui.selectmenu.js') diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 7b6e4e7cf..527d40eae 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -436,7 +436,7 @@ $.widget("ui.selectmenu", { } // update value - this.index( this._selectedIndex() ); + this._refreshValue(); // set selected item so movefocus has intial state this._selectedOptionLi().addClass(this.widgetBaseClass + '-item-focus'); -- cgit v1.2.3