Skip to content
This repository has been 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 opened this issue Oct 31, 2018 · 0 comments
Closed

Comments

@ostermanj
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants