Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow showing all suggestions when typed input doesn't match any #36

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gthedev
Copy link

@gthedev gthedev commented Mar 29, 2023

Closes #29

This adds two options/props to the component:

  • Boolean alwaysShowAll to always show all items given
  • Boolean showAllOnEmpty to show all items given if no projections match the typed input

Both are defaulted to false so that it is backwards compatible.

This is especially useful when getting the suggestions via an API and need to change the behaviour of filtering (e.g. soft search, auto typo fix etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The ability to see all items (and not only filtered items)
1 participant