Skip to content

Commit 0e8b5ea

Browse files
authored
fix(ui5-tabcontainer): prevent the tabcontainer from setting the selected property on ui5-tab internally (#1974)
1 parent a7d216c commit 0e8b5ea

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/main/src/TabContainer.js

-6
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,6 @@ class TabContainer extends UI5Element {
265265
}
266266

267267
onBeforeRendering() {
268-
// Set selected
269-
const hasSelected = this.items.some(item => item.selected);
270-
if (this.items.length && !hasSelected) {
271-
this.items[0].selected = true;
272-
}
273-
274268
// Set external properties to items
275269
this.items.forEach((item, index) => {
276270
item._isInline = this.tabLayout === TabLayout.Inline;

0 commit comments

Comments
 (0)