mirror of
https://github.com/material-components/material-web.git
synced 2024-08-17 17:40:40 +03:00
fix(tabs): fields intended to be accessed from templates must be exported
PiperOrigin-RevId: 575262457
This commit is contained in:
parent
da8d83d447
commit
b7be1cbbb4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user