fix for typeahead mouse click bug