diff options
author | Richard Worth <rdworth@gmail.com> | 2011-03-15 12:26:47 -0400 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2011-03-15 12:26:47 -0400 |
commit | 4026d3acd70508ca285bd4eb182b8f0b43eae5c8 (patch) | |
tree | be9a760fb84dc0be36c18393aa4bfd60c482b6eb /ui/jquery.ui.autocomplete.js | |
parent | c1a0f2bf6c7155e73e373818c44b06dcbe18c847 (diff) | |
download | jquery-ui-4026d3acd70508ca285bd4eb182b8f0b43eae5c8.tar.gz jquery-ui-4026d3acd70508ca285bd4eb182b8f0b43eae5c8.zip |
Autocomplete: moved autoFocus implementation to after menu visible for a11y
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 8 |
1 files 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() { |