Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

country search onchange state restarts whenever spacebar is clicked #411

Open
abdirahmanhassann opened this issue Feb 18, 2023 · 0 comments

Comments

@abdirahmanhassann
Copy link

country search onchange state restarts whenever spacebar is clicked. which poses a problem as there are many countries that have space bars between words.

Current Behavior

when searching for a country which requires a spacebar click, the onChange state assigned to that function
should not restart.

Possible Solution

possible solution would be to add space bar click to list of keys which dont trigger the state to restart .also add a conditional where space bar cannot be the first letter and 2 consecutive space bar clicks are checked and not allowed to be typed

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

No branches or pull requests

1 participant