Skip to content

Commit d7b9b2a

Browse files
committed
fix(ngc): don't emit HTMLElement in JS files
1 parent 5dbedee commit d7b9b2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/ripple/ripple.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
ForegroundRippleState,
1616
} from './ripple-renderer';
1717

18-
1918
@Directive({
2019
selector: '[md-ripple]',
2120
})
@@ -24,7 +23,9 @@ export class MdRipple implements OnInit, OnDestroy, OnChanges {
2423
* The element that triggers the ripple when click events are received. Defaults to the
2524
* directive's host element.
2625
*/
27-
@Input('md-ripple-trigger') trigger: HTMLElement;
26+
// Prevent TS metadata emit from referencing HTMLElement in ripple.js
27+
// That breaks tests running in node that load material components.
28+
@Input('md-ripple-trigger') trigger: HTMLElement|HTMLElement;
2829
/**
2930
* Whether the ripple always originates from the center of the host element's bounds, rather
3031
* than originating from the location of the click event.

0 commit comments

Comments
 (0)