mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 21:57:41 +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.
|
* The currently selected tab, `null` only when there are no tab children.
|
||||||
|
*
|
||||||
|
* @export
|
||||||
*/
|
*/
|
||||||
get activeTab() {
|
get activeTab() {
|
||||||
return this.tabs.find(tab => tab.active) ?? null;
|
return this.tabs.find(tab => tab.active) ?? null;
|
||||||
@ -64,6 +66,8 @@ export class Tabs extends LitElement {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The index of the currently selected tab.
|
* The index of the currently selected tab.
|
||||||
|
*
|
||||||
|
* @export
|
||||||
*/
|
*/
|
||||||
get activeTabIndex() {
|
get activeTabIndex() {
|
||||||
return this.tabs.findIndex(tab => tab.active);
|
return this.tabs.findIndex(tab => tab.active);
|
||||||
|
Loading…
Reference in New Issue
Block a user