Skip to content
Permalink
Browse files

Autocomplete: moved autoFocus implementation to after menu visible fo…

…r a11y
  • Loading branch information
rdworth committed Mar 15, 2011
1 parent c1a0f2b commit 4026d3acd70508ca285bd4eb182b8f0b43eae5c8
Showing with 4 additions and 4 deletions.
  1. +4 −4 ui/jquery.ui.autocomplete.js
@@ -363,16 +363,16 @@ $.widget( "ui.autocomplete", {
this.menu.blur();
this.menu.refresh();

if ( this.options.autoFocus ) {
this.menu.next( new $.Event("mouseover") );
}

// size and position menu
ul.show();
this._resizeMenu();
ul.position( $.extend({
of: this.element
}, this.options.position ));

if ( this.options.autoFocus ) {
this.menu.next( new $.Event("mouseover") );
}
},

_resizeMenu: function() {

0 comments on commit 4026d3a

Please sign in to comment.
You can’t perform that action at this time.