hide typeahead when not focused