Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable lazy auto-complete search and fallback to input while loading (#…
…3813) * fallback to input while lazy-loading search-autocomplete * fix flex TS types * remove testing profile leftover * cache index * cache index * render basic search when in SSR * drop client search index persistence * prettier * share more search input behaviors * change no-results text to be more actionable * update tests * use input onChange directly * woops * only load auto-complete on focus * increase autocomplete timeout * increase autocomplete timeout * (once again) increase autocomplete timeout * (hopefully the last one where I) increase autocomplete test timeout * change no-results copy * upgrade search on hover * only show search menu when there is an inputValue * also preload keyboard highlighted items * wait before starting preload * only show indexing message after some time * wrap SearchResults to prevent empty menu rendering * clearer search results conditionals * toggle menu when search item is selected * Update client/src/search.tsx Co-authored-by: Peter Bengtsson <peterbe@mozilla.com> * prettier * make no-results keyboard cursorable * fix basic search widget styling issues * fix comparison * use location.href to navigate That way previous searches are cleared * await navigation in search tests * keep navigate() and reset input instead * peter testing to commit * auto-activate when you expand main menu * solve for iPad preloading Co-authored-by: Peter Bengtsson <peterbe@mozilla.com> Co-authored-by: Peter Bengtsson <mail@peterbe.com>
- Loading branch information