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

Feature: Add new option if there is no search match #1071

Closed
kamerat opened this issue Feb 20, 2020 · 1 comment · Fixed by #1083
Closed

Feature: Add new option if there is no search match #1071

kamerat opened this issue Feb 20, 2020 · 1 comment · Fixed by #1083
Labels

Comments

@kamerat
Copy link
Contributor

kamerat commented Feb 20, 2020

Is your feature request related to a problem? Please describe.

Use case: User searches for something that is not currently in the list of options, but he would like to add it.

Problem
Currently, the slot no-options does not have any slot-scope options. Therefore, it is not possible to get the current search value to use for adding a new option.

Describe the solution you'd like

  1. The search input as slot-scope data for no-options
  2. (optional) Built in feature to add not found option to options & select it.

The .2 is the thing I am trying to achieve, but without slot-scope data, I am not sure how to obtain this functionality.

Describe alternatives you've considered

I have not thought about any other way to solve this within the component.

Additional context

Idea of what I'm trying to achieve:
Screenshot 2020-02-20 at 16 50 02
something in cursive there is hardcoded, but would ideally come from a slot-scope

@kamerat kamerat changed the title Feature: Add new option if no match Feature: Add new option if there is no search match Feb 20, 2020
sagalbot added a commit that referenced this issue Mar 5, 2020
@github-actions
Copy link

github-actions bot commented Mar 5, 2020

🎉 This issue has been resolved in version 3.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

1 participant