Skip to content

Commit

Permalink
Autocomplete (combobox demo): Blur the button on click to avoid a bug.
Browse files Browse the repository at this point in the history
Thanks tyron.
  • Loading branch information
scottgonzalez committed Apr 4, 2011
1 parent 98c53d8 commit 401c914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demos/autocomplete/combobox.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
return;
}

// work around a bug (likely same cause as #5265)
$( this ).blur();

// pass empty string as value to search for, displaying all results
input.autocomplete( "search", "" );
input.focus();
Expand Down

0 comments on commit 401c914

Please sign in to comment.