TabSheet.addTab() doesn't display the new tab until the new tab caption is specified #650

This commit is contained in:
Daniil Tsarev 2018-06-09 11:26:17 +04:00
parent 794ea90e85
commit bc04e00d9a

View File

@ -302,6 +302,8 @@ public class WebTabSheet extends WebAbstractComponent<CubaTabSheet> implements T
tabMapping.put(tabComponent, new ComponentDescriptor(name, childComponent));
com.vaadin.ui.TabSheet.Tab tabControl = this.component.addTab(tabComponent);
tab.setCaption(name);
if (getDebugId() != null) {
this.component.setTestId(tabControl,
AppUI.getCurrent().getTestIdManager().getTestId(getDebugId() + "." + name));