Skip to content

Commit 32eacd2

Browse files
alexeaglejelbourn
authored andcommitted
fix(ngc): don't emit HTMLElement in JS files (#1061)
1 parent c489385 commit 32eacd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/ripple/ripple.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export class MdRipple implements OnInit, OnDestroy, OnChanges {
2424
* The element that triggers the ripple when click events are received. Defaults to the
2525
* directive's host element.
2626
*/
27-
@Input('md-ripple-trigger') trigger: HTMLElement;
27+
// Prevent TS metadata emit from referencing HTMLElement in ripple.js
28+
// That breaks tests running in node that load material components.
29+
@Input('md-ripple-trigger') trigger: HTMLElement|HTMLElement;
2830
/**
2931
* Whether the ripple always originates from the center of the host element's bounds, rather
3032
* than originating from the location of the click event.

0 commit comments

Comments
 (0)