Skip to content

Commit f27617a

Browse files
andrewseguintinayuangao
authored andcommitted
fix(tab-nav): add constructor back for ripple (#3537)
1 parent 9849c53 commit f27617a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import {
44
ViewChild,
55
ElementRef,
66
ViewEncapsulation,
7-
Directive,
7+
Directive, NgZone, Inject, Optional,
88
} from '@angular/core';
99
import {MdInkBar} from '../ink-bar';
1010
import {MdRipple} from '../../core/ripple/index';
11+
import {ViewportRuler} from '../../core/overlay/position/viewport-ruler';
12+
import {MD_DISABLE_RIPPLES} from '../../core/ripple/ripple';
1113

1214
/**
1315
* Navigation component matching the styles of the tab group header.
@@ -79,4 +81,9 @@ export class MdTabLink {
7981
'[class.mat-tab-link]': 'true',
8082
},
8183
})
82-
export class MdTabLinkRipple extends MdRipple {}
84+
export class MdTabLinkRipple extends MdRipple {
85+
constructor(elementRef: ElementRef, ngZone: NgZone, ruler: ViewportRuler,
86+
@Optional() @Inject(MD_DISABLE_RIPPLES) forceDisableRipples: boolean) {
87+
super(elementRef, ngZone, ruler, forceDisableRipples);
88+
}
89+
}

0 commit comments

Comments
 (0)