Skip to content

Commit

Permalink
fix: add default activeid value tabs (#6606) (#6753)
Browse files Browse the repository at this point in the history
* set activeid during setTabs initialization

* Change files

* update dependent change type
  • Loading branch information
chrisdholt authored Jun 6, 2023
1 parent 085cb27 commit 8c80dfc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "set activeid when setting active tab",
"packageName": "@microsoft/fast-foundation",
"email": "chhol@microsoft.com",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions packages/web-components/fast-foundation/src/tabs/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export class Tabs extends FoundationElement {
tab.setAttribute("tabindex", isActiveTab ? "0" : "-1");
if (isActiveTab) {
this.activetab = tab;
this.activeid = tabId;
}
}

Expand Down

0 comments on commit 8c80dfc

Please sign in to comment.