Skip to content

triggerSelectOnValidInput when multiple suggestions are left #361

Closed
@jvanegmond

Description

@jvanegmond

I ran into a problem when having a drop down with place names. The places are named as following:

Almere
Almere Haven
Almere Buiten

When an end user would type the first half of Almere Haven, Almere would automatically be selected and the suggestions for Almere Haven and Almere Buiten would disappear. This can confuse the end user.

A potential solution is disabling triggerSelectOnValidInput. However, in most cases you only have a single suggestion for the input so it makes a lot of sense to keep it enabled.

The solution I thought of was to add a check for the number of given solutions. If it is greater than a single remaining one, don't close the suggestions box just yet. This would make a reasonable default behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions