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

Multiple select contains empty string in value array #457

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

Multiple select contains empty string in value array #457

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

Comments

@davidkudera
Copy link

Describe the bug
Value of <sl-select multiple> contains an empty string even when no such <sl-menu-item> was added or selected by a user. It stays there until the user clicks on the remove icon of one of the selected items.

To Reproduce
I prepared an example in Lit playground: example

Expected behavior
<sl-select>.value should not contain an empty string unless there is <sl-menu-item value=""> which was selected by a user.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser chrome
  • Version 91.0.4472.77
@davidkudera davidkudera added the bug Things that aren't working right in the library. label Jun 4, 2021
@claviska
Copy link
Member

claviska commented Jun 4, 2021

Thanks for reporting this. The fix 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