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

[select] [Placeholder is only shown when using multiple select] #1440

Closed
rabol opened this issue Mar 1, 2023 · 4 comments · Fixed by #1764
Closed

[select] [Placeholder is only shown when using multiple select] #1440

rabol opened this issue Mar 1, 2023 · 4 comments · Fixed by #1764
Assignees
Milestone

Comments

@rabol
Copy link

rabol commented Mar 1, 2023

Describe the bug
Placeholder is only shown wne one include the 'multiple'

To Reproduce
Steps to reproduce the behavior:

this does not have a placeholder

<select
    data-te-select-init
    data-te-select-placeholder="Select level"
    id="user_level"
    name="user_level">
        <option value="10">Standard</option>
        <option value="20">Plus</option>
        <option value="30">Pro</option>
</select>

this have a place holder

<select
    data-te-select-init
    data-te-select-placeholder="Select level"
    multiple
    id="user_level"
    name="user_level">
        <option value="10">Standard</option>
        <option value="20">Plus</option>
        <option value="30">Pro</option>
</select>

Expected behavior
Expected tha the select will have a placeholder.

Actual behavior
The select does not have the placeholder

Show your code
see above - cannot create snippet as my account needs to be 7 day old!
issue is also in the snippet on the playground

@Trochonovitz
Copy link
Member

Hi, I believe you are talking about Hidden selected option example.

@rabol
Copy link
Author

rabol commented Mar 1, 2023

I'm simply trying to have a placeholder in the select, and it only appears if I add 'multiple', but then the select becomes a multiple select, which I don't want

https://tailwind-elements.com/docs/standard/forms/select/#select-with-placeholder

@Trochonovitz
Copy link
Member

This is on purpose - example linked above, Hidden selected option, has only one selected element + placeholder.

@rabol
Copy link
Author

rabol commented Mar 1, 2023

Hi, I believe you are talking about Hidden selected option example.

No I'm talking about: https://tailwind-elements.com/docs/standard/forms/select/#select-with-placeholder

so I cannot have a placeholder in a 'single' select ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants