metonym / svelte-typeahead

Accessible, fuzzy search typeahead component
https://metonym.github.io/svelte-typeahead
MIT License
222 stars 18 forks source link

feat: add `showAllResultsOnFocus` prop #65

Closed metonym closed 1 year ago

metonym commented 1 year ago

Closes #64

By default, no results are shown if an empty input (i.e., value="") is focused.

This adds a showAllResultsOnFocus prop that – if enabled – displays all results when an empty input is shown.

<Typeahead showAllResultsOnFocus {data} {extract} />