Autocomplete: Fix for #5154

This commit is contained in:
Jörn Zaefferer 2010-02-10 15:08:27 +00:00
parent 3875cd33b7
commit 4cea3290a1

View File

@ -240,6 +240,7 @@ $.widget( "ui.autocomplete", {
$.each( items, function( index, item ) {
self._renderItem( ul, item );
});
// TODO refresh should check if the active item is still in the dom, removing the need for a manual deactivate
this.menu.deactivate();
this.menu.refresh();
this.menu.element.show();