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.


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!