aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.autocomplete.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2011-03-15 12:26:47 -0400
committerRichard Worth <rdworth@gmail.com>2011-03-15 12:27:40 -0400
commit3cfba5d9a8ff6d4f70b4e6d9ea5db8c22ea90c43 (patch)
tree71cf24b3a5743b9d8c8a168c659343ff99a21006 /ui/jquery.ui.autocomplete.js
parent1fe58dbf525c614dd1b490a66dad43a1711181ee (diff)
downloadjquery-ui-3cfba5d9a8ff6d4f70b4e6d9ea5db8c22ea90c43.tar.gz
jquery-ui-3cfba5d9a8ff6d4f70b4e6d9ea5db8c22ea90c43.zip
Autocomplete: moved autoFocus implementation to after menu visible for a11y
(cherry picked from commit 4026d3acd70508ca285bd4eb182b8f0b43eae5c8)
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r--ui/jquery.ui.autocomplete.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 204322320..dfe3fa3f3 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -360,16 +360,16 @@ $.widget( "ui.autocomplete", {
this.menu.deactivate();
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() {