Hi,
I’m having a rendering issue when trying to use the autocomplete with a custom ComboBox Renderer that uses the ComponentRenderer. Specifically as you type in to autocomplete a value all the results are blank. I’ve tried Label, NativeLabel and so on. If nothing is typed in then everything is rendered perfectly, it’s only on autocomplete. I’ve included the screenshot below of the autocomplete not working correctly as well as a code snippet. This code used to work and it seems maybe due to a recent update…
ComboBox<DataObject> comboBox = new ComboBox<>();
comboBox.setRenderer(new ComponentRenderer<>(data -> {
HorizontalLayout horizontalLayout = new HorizontalLayout();
horizontalLayout.add(
VaadinIcon.PLUS_CIRCLE.create(),
new Span(data.getDisplayValue()));
horizontalLayout.setWidthFull();
return horizontalLayout;
}));