Emitting an event when the autocomplete is shown