Please see the attached screen shot. The tool tip for the save button is showing two different text. The first one is “Medical record is required” was should have been replaced with “Ok to save”.Can you help figure out what we are doing wrong?
On other note, we had to stop using it on the combo boxes because the remove tool tip is not working correctly or we are attempting to change the tool tip incorrectly.
The current version (2.3.0) should also fix combobox related Issues.
I verified it using this example:
@Route("")
public class ComboBoxDemoView extends FlexLayout {
private static final long serialVersionUID = 7591127437515385460L;
@Data
private static final class Sean {
private final String label;
private final int id;
}
public ComboBoxDemoView() {
ComboBox<Sean> cb = new ComboBox<>("Combo");
cb.setItems(new Sean("first",0), new Sean("second", 1));
cb.setHeight("fit-content");
cb.setItemLabelGenerator(Sean::getLabel);
cb.setRenderer(new ComponentRenderer<>(item -> {
Span label = new Span(item.getLabel());
Tooltips.getCurrent().setTooltip(label, "" + item.getId());
return label;
}));
Tooltips.getCurrent().setTooltip(cb, "initial");
add(cb);
}
}