From b7be1cbbb4e7b08421d293ba89f364632822d113 Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Fri, 20 Oct 2023 10:49:30 -0700 Subject: [PATCH] fix(tabs): fields intended to be accessed from templates must be exported PiperOrigin-RevId: 575262457 --- tabs/internal/tabs.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tabs/internal/tabs.ts b/tabs/internal/tabs.ts index e63549bbb..5f536cf01 100644 --- a/tabs/internal/tabs.ts +++ b/tabs/internal/tabs.ts @@ -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; @@ -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);