8000 onChange event emitted on enter when "no results" message is present · Issue #75 · Mobius1/Selectr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.
This repository was archived by the owner on Dec 7, 2021. It is now read-only.
onChange event emitted on enter when "no results" message is present #75
Closed
@ostermanj

Description

@ostermanj

On hitting enter, an onChange event is fired for the last option to match the users search even when the search results in "no results".

Say as user was searching for "Brazilia" in a options list that included "Brazil" but not "Brazilia". As the user is typing, "Brazil" will become the matching option. As the user finishes typing "Brazilia," the "no results" message will appear, but if they hit enter "Brazil" will still be selected. Similarly, if a user misspells a word, whatever option last matched the keystrokes will be selected.

PR coming to address.

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

      0