From c072aa967bcdac0022f272af6f0833dc2fdc1291 Mon Sep 17 00:00:00 2001 From: Filip Siderov Date: Wed, 22 Jul 2020 11:10:09 +0300 Subject: [PATCH] fix(ui5-tabcontainer): prevent the tabcontainer from setting the selected property on ui5-tab internally --- packages/main/src/TabContainer.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/main/src/TabContainer.js b/packages/main/src/TabContainer.js index a6aef289006b..9867e5b2f8cf 100644 --- a/packages/main/src/TabContainer.js +++ b/packages/main/src/TabContainer.js @@ -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;