Skip to content

A way to prevent createOption to add a new option. #1687

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

Open
LukasOchmann opened this issue Sep 16, 2022 · 0 comments
Open

A way to prevent createOption to add a new option. #1687

LukasOchmann opened this issue Sep 16, 2022 · 0 comments

Comments

@LukasOchmann
Copy link

The options passed to v-select are a suggested list of User which can be added to an Organization. If none of the suggestions match the searched user. It is possible to type in an e-mail which then is added. While that creates a new option, i want to check if the E-Mail is already in the added or suggested Members.

Describe the solution you'd like
If either the createOption throws or returns null/undefined adding an option should be omitted.

Additional context
I would prefer the throwing variant, because it is maybe important for someone that adding undefined/null works.

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

No branches or pull requests

1 participant