Skip to content

Commit

Permalink
fix(ui5-tabcontainer): prevent the tabcontainer from setting the sele…
Browse files Browse the repository at this point in the history
…cted property on ui5-tab internally (#1974)
  • Loading branch information
fifoosid authored Jul 23, 2020
1 parent a7d216c commit 0e8b5ea
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/main/src/TabContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,6 @@ class TabContainer extends UI5Element {
}

onBeforeRendering() {
// Set selected
const hasSelected = this.items.some(item => item.selected);
if (this.items.length && !hasSelected) {
this.items[0].selected = true;
}

// Set external properties to items
this.items.forEach((item, index) => {
item._isInline = this.tabLayout === TabLayout.Inline;
Expand Down

0 comments on commit 0e8b5ea

Please sign in to comment.