Fix problem with autocomplete which closes when mouse is used.