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

Use placeholder value when no items selected #38

Open
damienmckenna opened this issue Sep 17, 2024 · 1 comment
Open

Use placeholder value when no items selected #38

damienmckenna opened this issue Sep 17, 2024 · 1 comment

Comments

@damienmckenna
Copy link

The "placeholder" attribute seems a little useless as the "templateSelection" element is used as soon as the library loads.

It would be really useful if the placeholder could be used as the default when nothing is selected.

@damienmckenna
Copy link
Author

FWIW I worked this out by modifying templateSelection() to check selected.length and if it's zero then load a placeholder value, otherwise use the normal string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant