Skip to content

Commit ed87c50

Browse files
fix(tabs): corrige renderização das tabs no estado inicial do componente
As tabs eram inclúidas na lista dropdown antes da rotina que define a criação do dropdown com tabs ativas. Fixes DTHFUI-9602
1 parent 77a7105 commit ed87c50

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
<i class="ph ph-sun"></i>
2-
3-
<i class="ph ph-moon"></i>

projects/ui/src/lib/components/po-tabs/po-tabs.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,9 @@ export class PoTabsComponent extends PoTabsBaseComponent implements OnInit, Afte
283283
}
284284

285285
if (this.tabsChildren) {
286-
const _tabsChildren = this.tabsChildrenArray;
286+
const _tabsChildren = [...this.tabsChildrenArray];
287287
if (initialState) {
288288
this.tabsDefault = _tabsChildren;
289-
this.tabsDropdown = _tabsChildren;
290289
} else {
291290
this.tabsDefault = _tabsChildren.slice(0, this.quantityTabsButton);
292291
this.tabsDropdown = _tabsChildren.slice(this.quantityTabsButton);

0 commit comments

Comments
 (0)