Skip to content

Ability to prefill input on autocomplete #414

@ianwalter

Description

@ianwalter

Is your feature request related to a problem?

I know you can supply an "initial" value to autocomplete but that has to match an option. What I want is the ability to supply an initial value of the input so that the options can be filtered immediately on first render. The use case is using this with a git cli where the user can submit a keyword to filter branches and so they would be presented with relevant branches instead of all of the git branches (hundreds of options).

Describe the solution you'd like

An option like initialInput or prefill where you could specify how the options are initially filtered and it would show up in the input automatically on first render.

Describe alternatives you've considered

I can't really think of a workaround or alternative solution for this.

Additional context

None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions