How to set the initial value of the vaadin-combo-box component with a lazy dataProvider? What properties should be used? We have tried combinations of item-label-path, item-value-path, item-id-path, selected-item, value…
When setting the object into value, we get the following error:
Warning: unable to determine the label for the provided value. Nothing to display in the text field. This usually happens when setting an initial value before any items are returned from the dataProvider callback. Consider setting selectedItem instead of value
selected-item should reference the object, rather than its ID, other than that the snippet looks fine.
Setting value together with a data provider will not display anything in the text field, as the items are only loaded after opening the combo box, so there is no data to generate the label / text field value from. As the warning mentions, selected-item should be used instead together with a data provider.
In general, if you have to provide an object then you must assign it to the property (.camelCase). Attributes (kebab-case) may only contain string values.