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

fix(web): more language selector nits #10271

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Conversation

zackpollard
Copy link
Contributor

No description provided.

@@ -60,6 +60,7 @@
const activate = () => {
isActive = true;
input?.select();
searchQuery = '';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why clear the value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to get the dropdown to show the full list. When removing focus, the deactivate() fn below restores the query.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally the search query remains in the input field while also showing all options, but there doesn't seem to be an easy way to do this. input?.select(); can be removed though as it no longer serves a purpose

@zackpollard zackpollard merged commit 7de2665 into main Jun 13, 2024
22 checks passed
@zackpollard zackpollard deleted the fix/more-language-nits branch June 13, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants