Fix typeahead bug on mobile