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

Guarantee that the select is focus after the component is closed; #256

Merged
merged 1 commit into from
May 29, 2023

Conversation

JoaoFerreira-FrontEnd
Copy link
Contributor

This PR is to improve the user experience of the select when we are not using the mouse.

What was happening?
After selecting a dropdown item, the focus seems to go to the body, instead of returning to the dropdown trigger.

What was done?
Set the input on focus when the dropdown was closed.

@gnbm gnbm changed the title Guaratee that the select is focus after the component is closed; Guarantee that the select is focus after the component is closed; May 29, 2023
@gnbm gnbm requested review from sa-si-dev and gnbm May 29, 2023 07:15
@gnbm
Copy link
Collaborator

gnbm commented May 29, 2023

@JoaoFerreira-FrontEnd Can you please add the test scenarios? Thanks

@gnbm
Copy link
Collaborator

gnbm commented May 29, 2023

Thanks @JoaoFerreira-FrontEnd for your contribution.
I will check and merge this change in the next release.

@gnbm gnbm merged commit 60f58fb into sa-si-dev:master May 29, 2023
@JoaoFerreira-FrontEnd
Copy link
Contributor Author

To test the use case you just need to choose an item on a single select, and on after close click enter.
The select should open after the solution.

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

Successfully merging this pull request may close these issues.

2 participants