Skip to content

Commit ef5d9cb

Browse files
crisbetommalerba
authored andcommitted
fix(tabs): avoid Ivy template type checking errors in tab link (#17282)
Follow-up from #17228. Adds a directive annotation to the `_MatTabLinkBase` because it was overlooked the last time around.
1 parent 5a65a63 commit ef5d9cb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ const _MatTabLinkMixinBase:
191191
mixinTabIndex(mixinDisableRipple(mixinDisabled(MatTabLinkMixinBase)));
192192

193193
/** Base class with all of the `MatTabLink` functionality. */
194+
@Directive({
195+
// TODO(crisbeto): this selector can be removed when we update to Angular 9.0.
196+
selector: 'do-not-use-abstract-mat-tab-link-base'
197+
})
194198
// tslint:disable-next-line:class-name
195199
export class _MatTabLinkBase extends _MatTabLinkMixinBase implements OnDestroy, CanDisable,
196200
CanDisableRipple, HasTabIndex, RippleTarget, FocusableOption {

src/material/tabs/tabs-module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {MatTabGroup, _MatTabGroupBase} from './tab-group';
2020
import {MatTabHeader, _MatTabHeaderBase} from './tab-header';
2121
import {MatTabLabel} from './tab-label';
2222
import {MatTabLabelWrapper} from './tab-label-wrapper';
23-
import {MatTabLink, MatTabNav, _MatTabNavBase} from './tab-nav-bar/tab-nav-bar';
23+
import {MatTabLink, MatTabNav, _MatTabNavBase, _MatTabLinkBase} from './tab-nav-bar/tab-nav-bar';
2424
import {MatPaginatedTabHeader} from './paginated-tab-header';
2525

2626

@@ -62,6 +62,7 @@ import {MatPaginatedTabHeader} from './paginated-tab-header';
6262
_MatTabNavBase as any,
6363
_MatTabBodyBase as any,
6464
_MatTabHeaderBase as any,
65+
_MatTabLinkBase as any,
6566
],
6667
})
6768
export class MatTabsModule {}

0 commit comments

Comments
 (0)