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

[combo-box] Visually communicate if ComboBox allows custom values #7486

Open
juuso-vaadin opened this issue Jun 13, 2024 · 0 comments
Open
Labels
enhancement New feature or request needs design Design is needed vaadin-combo-box

Comments

@juuso-vaadin
Copy link
Contributor

Describe your motivation

Currently ComboBox doesn't communicate to the user if the input accepts custom values or not.
Blurring the field will clear the input if custom values are not allowed.

image

Describe the solution you'd like

Overlay could be used to communicate if no items are matching the input.

image

In addition if custom values are allowed, the overlay could indicate that it's a new value that isn't in the list yet. The custom values may be added to the list of options or used as ad-hoc values and maybe the visuals could communicate that difference as well.

image

Describe alternatives you've considered

Using prefix or helper would affect the sizing which is not good. Suffix would be the least distracting, but still affects the area that remains for the value.

image

Additional context

No response

@juuso-vaadin juuso-vaadin added enhancement New feature or request vaadin-combo-box labels Jun 13, 2024
@rolfsmeds rolfsmeds added the needs design Design is needed label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs design Design is needed vaadin-combo-box
Projects
None yet
Development

No branches or pull requests

2 participants