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

Blur event on select is fired too soon #456

Closed
davidkudera opened this issue Jun 3, 2021 · 1 comment
Closed

Blur event on select is fired too soon #456

davidkudera opened this issue Jun 3, 2021 · 1 comment
Assignees
Labels
bug Things that aren't working right in the library.

Comments

@davidkudera
Copy link

Describe the bug
sl-blur event on <sl-select> is fired when the menu is still open. It fires when the cursor moves out of the trigger element. Instead, it should be fired only after the menu is closed by moving the focus to another element (click elsewhere, TAB, ...).

To Reproduce
I prepared example in Lit playground: example

Expected behavior
<sl-select> should lose focus after the menu is closed by for example clicking somewhere else.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser chrome
  • Version 90.0.4430.212

Additional context
Included example shows the difference in the behavior compared to standard <select> by counting blur occurrences.

@davidkudera davidkudera added the bug Things that aren't working right in the library. label Jun 3, 2021
@claviska
Copy link
Member

claviska commented Jun 5, 2021

This behavior, along with the visual focus, has been fixed and will be available in beta.44.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants