Skip to content

Commit

Permalink
fix(tabs): fields intended to be accessed from templates must be expo…
Browse files Browse the repository at this point in the history
…rted

PiperOrigin-RevId: 575262457
  • Loading branch information
material-web-copybara authored and Copybara-Service committed Oct 20, 2023
1 parent da8d83d commit b7be1cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tabs/internal/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export class Tabs extends LitElement {

/**
* The currently selected tab, `null` only when there are no tab children.
*
* @export
*/
get activeTab() {
return this.tabs.find(tab => tab.active) ?? null;
Expand All @@ -64,6 +66,8 @@ export class Tabs extends LitElement {

/**
* The index of the currently selected tab.
*
* @export
*/
get activeTabIndex() {
return this.tabs.findIndex(tab => tab.active);
Expand Down

0 comments on commit b7be1cb

Please sign in to comment.