Skip to content

Commit b45c058

Browse files
committed
fix(ui5-tabcontainer): prevent the tabcontainer from setting the selected property on ui5-tab internally (#1974)
1 parent 8dfa088 commit b45c058

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/main/src/TabContainer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,6 @@ class TabContainer extends UI5Element {
264264
}
265265

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

0 commit comments

Comments
 (0)