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

Add undefinedFirstValue to select #87

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Add undefinedFirstValue to select #87

merged 1 commit into from
Nov 22, 2023

Conversation

JD557
Copy link
Owner

@JD557 JD557 commented Nov 22, 2023

Adds an undefinedFirstValue option to the select component that, when enable, makes the value 0 unselectable.

This is useful for select boxes that should not have a default value. In this case, the first label can be used as a description text.

I'm not sure if this is the best API, but it's good enough for now.

With some trickery, this also allows to implement some basic dropdown menus.

@JD557 JD557 added this to the 0.1.6 milestone Nov 22, 2023
@JD557 JD557 merged commit c6496ad into master Nov 22, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant