diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 598a7cc2740..5e4282bc8ff 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -81,6 +81,9 @@ return false; } } + + // triggers the change event in the select, as it can hold some events + select.change(); } }) .addClass( "ui-widget ui-widget-content ui-corner-left" ); @@ -112,6 +115,9 @@ return; } + // unselects the button, so it behaves correctly + $( this ).blur(); + // pass empty string as value to search for, displaying all results input.autocomplete( "search", "" ); input.focus();