From 7725e4adba24fa0f7aa5d68f38cbede887e86f67 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Sat, 10 Nov 2012 01:18:49 +0100 Subject: [PATCH] Selectmenu: focus selected item when menu opens --- ui/jquery.ui.selectmenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index a66a03a96..5c60486bf 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -201,6 +201,7 @@ $.widget( "ui.selectmenu", { this.isOpen = true; this._toggleAttr(); + this.menu.menu( "focus", event, this._getSelectedItem() ); if ( this.items && !this.options.dropdown ) { var currentItem = this._getSelectedItem();