Skip to content
Permalink
Browse files

Autocomplete: changed autoFocus default to true for 1.9. Fixed #7042 …

…- Autocomplete: Default autoFocus to true
  • Loading branch information...
rdworth committed Mar 15, 2011
1 parent 09215ef commit 2f5eadeb8feb802bf3cbb24e329e3c4da3015322
@@ -60,6 +60,7 @@ test( "prevent form submit on enter when menu is active", function() {
test( "allow form submit on enter when menu is not active", function() {
var event;
var ac = $( "#autocomplete" ).autocomplete({
autoFocus: false,
source: [ "java", "javascript" ]
}).val( "ja" ).autocomplete( "search" );

@@ -4,7 +4,7 @@

var autocomplete_defaults = {
appendTo: "body",
autoFocus: false,
autoFocus: true,
delay: 300,
disabled: false,
minLength: 1,
@@ -14,6 +14,7 @@ var data = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "py
test("all events", function() {
expect(12);
var ac = $("#autocomplete").autocomplete({
autoFocus: false,
delay: 0,
source: data,
search: function(event) {
@@ -56,6 +57,7 @@ test("all events", function() {
test("all events - contenteditable", function() {
expect(12);
var ac = $("#autocomplete-contenteditable").autocomplete({
autoFocus: false,
delay: 0,
source: data,
search: function(event) {
@@ -22,7 +22,7 @@ $.widget( "ui.autocomplete", {
defaultElement: "<input>",
options: {
appendTo: "body",
autoFocus: false,
autoFocus: true,
delay: 300,
minLength: 1,
position: {

0 comments on commit 2f5eade

Please sign in to comment.
You can’t perform that action at this time.