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

Not possible to choose an option with empty value, because it used as placeholder #912

Closed
Fedik opened this issue Nov 8, 2020 · 2 comments

Comments

@Fedik
Copy link

Fedik commented Nov 8, 2020

Describe the bug
Since #617 is not possible to have an empty value in multi-select.

To Reproduce
Steps to reproduce the behavior.
Create a multiselect field with:

<select multiple>
  <option value="">All</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>

Expected behavior
You should be able to select "All", as it in native <select> behavior.

Additional context
Choices should not take an empty option as placeholder. If placeholder is invalid attribute (#447), then data-placeholder is pretty valid attribute

@ksouthworth
Copy link

I'm also dealing with this issue, does anyone have a solution or a workaround?

@Xon Xon mentioned this issue Aug 6, 2024
9 tasks
@Xon
Copy link
Collaborator

Xon commented Aug 22, 2024

Implemented as part of #1166

@Xon Xon closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants