Skip to content

Commit 22e1e43

Browse files
committed
feat(material/tabs): Fix syntax error
1 parent add3c33 commit 22e1e43

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/material/tabs/tab-nav-bar/tab-nav-bar.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export abstract class _MatTabNavBase
6565
{
6666
/** Query list of all tab links of the tab navigation. */
6767
abstract override _items: QueryList<
68-
MatPaginatedTabHeaderItem & {active: boolean; id: string; index: number}>;
68+
MatPaginatedTabHeaderItem & {active: boolean; id: string; index: number}
69+
>;
6970

7071
/** Background color of the tab nav. */
7172
@Input()
@@ -276,7 +277,7 @@ export class _MatTabLinkBase
276277
@Input() id = `mat-tab-link-${nextUniqueId++}`;
277278

278279
/** Index of the tab within the nav bar. Managed by the nav bar. */
279-
index = -1;
280+
index = -1;
280281

281282
constructor(
282283
private _tabNavBar: _MatTabNavBase,
@@ -331,7 +332,7 @@ export class _MatTabLinkBase
331332
return this._isActive ? 0 : -1;
332333
}
333334

334-
return (this._tabNavBar.focusIndex === this.index) ? 0 : -1;
335+
return this._tabNavBar.focusIndex === this.index ? 0 : -1;
335336
}
336337

337338
static ngAcceptInputType_active: BooleanInput;

0 commit comments

Comments
 (0)