Skip to content

Commit fd175b4

Browse files
committed
fixup! refactor(material/core): generalize lazy ripple logic
1 parent 936c580 commit fd175b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/core/private/ripple-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class MatRippleLoader implements OnDestroy {
120120

121121
/** Handles creating and attaching component internals when a component it is initially interacted with. */
122122
private _onInteraction = (event: Event) => {
123-
if (event.target === this._document) {
123+
if (!(event.target instanceof HTMLElement)) {
124124
return;
125125
}
126126
const eventTarget = event.target as HTMLElement;

0 commit comments

Comments
 (0)