I started having this problem recently. Grid column with ComponentRenderer does not display cell contents with Chrome Version 72.0.3626.96 (Official Build) (64-bit).
It is similar to this problem https://github.com/vaadin/vaadin-grid-flow/issues/310
But, I found that it only happens with recent Chrome versions. It works fine with Chrome Version 67 or Safari.
Here is the code snipped:
grid = new Grid<>();
grid.setDataProvider(listDataProvider);
...
grid.addColumn(new ComponentRenderer<>(this::linkToSampleListButton)).setWidth("50px").setHeader("Sample Count");
...
private Button linkToSampleListButton(Bot bot) {
Button sampleLink = new Button(String.valueOf(bot.getSample().size()));
sampleLink.setIcon(VaadinIcon.EYEDROPPER.create());
String sLink = "samples/" + String.valueOf(bot.getPk());
sampleLink.addClickListener(e -> {
sampleLink.getUI().ifPresent(ui -> ui.navigate(sLink));
});
return sampleLink;
}
Does anyone else experience the similar problem? Any suggested workarounds?