Permalink
Browse files

Selectmenu: focus selected item when menu opens

  • Loading branch information...
1 parent 684b55b commit 7725e4adba24fa0f7aa5d68f38cbede887e86f67 @fnagel fnagel committed Nov 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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();

0 comments on commit 7725e4a

Please sign in to comment.