Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Prevent deletion of text input in combobox when it loses focus
When the combobox loses focus, it always deletes everything the user entered, if enter has not been pressed. Is there an easy way to prevent this behaviour? I already tried to remove blur listeners, but there are not any registered.
Thanks!
Hi Markus,
You can try setting "allowCustomValue" property to true like so:
<vaadin-combo-box allow-custom-value></vaadin-combo-box>
That allows the combo box to have values not included in the initial items list.
Hi Tomi,
thanks for your answer. I am working with the framework and now recognized, that I probably posted this question into the wrong category.
I only found these two methods, which did not achieve the desired effect:
cb.setInvalidAllowed(true);
cb.setNewItemsAllowed(true);
Thanks!