Fix click issue with typeahead events