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

Close list when losing focus #53

Closed
egdegauperaa opened this issue Mar 1, 2022 · 2 comments
Closed

Close list when losing focus #53

egdegauperaa opened this issue Mar 1, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@egdegauperaa
Copy link

When using the keyboard to navigate, the list opens automatically when the component receives focus. It doesn't however close when losing focus. Would that be possible to implement, or have a prop to enable it?

To reproduce what I'm describing:
https://svelte-multiselect.netlify.app/
Use tab to navigate to the first list
When it opens use tab to jump to the next list (or other item if this had been a typical form)
The second list opens but the first one stays open.

@janosh
Copy link
Owner

janosh commented Mar 1, 2022

Good catch! Closing on blur should definitely be the default behavior. No new prop needed I think.

@janosh janosh self-assigned this Mar 1, 2022
@janosh janosh added the bug Something isn't working label Mar 1, 2022
@janosh janosh closed this as completed in 25795b4 Mar 5, 2022
@janosh
Copy link
Owner

janosh commented Mar 5, 2022

Fix released in v4.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants