Skip to content

Commit

Permalink
fix(ripple): Adds HTMLElement shim to fix regression for SSR projects (
Browse files Browse the repository at this point in the history
  • Loading branch information
4cm4k1 authored and Matt Goo committed Jan 23, 2019
1 parent b11ed41 commit 3aaf871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ripple/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import {Subtract} from 'utility-types'; // eslint-disable-line no-unused-vars
// @ts-ignore no mdc .d.ts file
import {MDCRippleFoundation, MDCRippleAdapter, util} from '@material/ripple/dist/mdc.ripple';

const MATCHES = util.getMatchesProperty(HTMLElement.prototype);
const HTMLElementShim: any = typeof HTMLElement === 'undefined' ? {} : HTMLElement;
const MATCHES = util.getMatchesProperty(HTMLElementShim.prototype);

export interface RippledComponentProps<T> {
unbounded?: boolean;
Expand Down

0 comments on commit 3aaf871

Please sign in to comment.