Combobox with allowCustomValue="true" and itemsFetchCallback not working when items is empty

I have a combobox that has both custom value and itemsFetchCallback on a mandatory property.

My custom values are not being accepted if the collection behind the combobox is empty. If the collection is non-empty, it only works after selecting an item in the collection and then deleting and typing the custom value.

I reproduced this in a sample
comboboxissue.zip (1.4 MB)

Hi!

You must process custom input manually. Custom value are confirmed by pressing Enter.

Example of value processing:

    @Subscribe("mandaryFieldField")
    public void onMandaryFieldFieldCustomValueSet(final CustomValueSetEvent<ComboBox<String>> event) {
        mandaryFieldField.setValue(event.getDetail());
    }

    @Subscribe("anotherMandatoryField")
    public void onAnotherMandatoryFieldCustomValueSet(final CustomValueSetEvent<ComboBox<String>> event) {
        anotherMandatoryField.setValue(event.getDetail());
    }

Best regards,
Dmitriy