Skip to content

Commit

Permalink
fix(tabs): corrige renderização das tabs no estado inicial do componente
Browse files Browse the repository at this point in the history
As tabs eram inclúidas na lista dropdown antes da rotina que define a criação do dropdown com tabs ativas.

Fixes DTHFUI-9602
  • Loading branch information
pedrodominguesp committed Aug 26, 2024
1 parent 77a7105 commit ed87c50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions projects/app/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
<i class="ph ph-sun"></i>

<i class="ph ph-moon"></i>
3 changes: 1 addition & 2 deletions projects/ui/src/lib/components/po-tabs/po-tabs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,9 @@ export class PoTabsComponent extends PoTabsBaseComponent implements OnInit, Afte
}

if (this.tabsChildren) {
const _tabsChildren = this.tabsChildrenArray;
const _tabsChildren = [...this.tabsChildrenArray];
if (initialState) {
this.tabsDefault = _tabsChildren;
this.tabsDropdown = _tabsChildren;
} else {
this.tabsDefault = _tabsChildren.slice(0, this.quantityTabsButton);
this.tabsDropdown = _tabsChildren.slice(this.quantityTabsButton);
Expand Down

0 comments on commit ed87c50

Please sign in to comment.