Vue-select: Feature: Add new option if there is no search match

Created on 20 Feb 2020  路  1Comment  路  Source: sagalbot/vue-select

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

released

Most helpful comment

:tada: This issue has been resolved in version 3.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

>All comments

:tada: This issue has been resolved in version 3.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jluterek picture jluterek  路  3Comments

fabianmieller picture fabianmieller  路  3Comments

FrozenIce0617 picture FrozenIce0617  路  3Comments

pud1m picture pud1m  路  3Comments

edalzell picture edalzell  路  3Comments