From 4026d3acd70508ca285bd4eb182b8f0b43eae5c8 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Tue, 15 Mar 2011 12:26:47 -0400 Subject: [PATCH] Autocomplete: moved autoFocus implementation to after menu visible for a11y --- ui/jquery.ui.autocomplete.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index a9e4b4119..ee6eb659f 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/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() { -- 2.39.5