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.
(cherry picked from commit 401c914)
  • Loading branch information
scottgonzalez committed Apr 4, 2011
1 parent a8fc3da commit 5b45dbe
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 @@ -101,6 +101,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 5b45dbe

Please sign in to comment.