mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Autocomplete: moved autoFocus implementation to after menu visible for a11y
This commit is contained in:
8
ui/jquery.ui.autocomplete.js
vendored
8
ui/jquery.ui.autocomplete.js
vendored
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user