diff options
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index c83f042c0..e6acd4b63 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -22,6 +22,7 @@ $.widget( "ui.autocomplete", { defaultElement: "<input>", options: { appendTo: "body", + autoFocus: false, delay: 300, minLength: 1, position: { @@ -362,6 +363,10 @@ $.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(); |