From 079fcf6e2cb470bb08e50eee34dae2d7f994f5e2 Mon Sep 17 00:00:00 2001 From: BerndWessels Date: Wed, 12 Apr 2017 14:25:14 +1200 Subject: [PATCH] Fixed preact ripple for server side rendering. --- material-ripple/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/material-ripple/index.js b/material-ripple/index.js index 9e2be8a..49c3b28 100644 --- a/material-ripple/index.js +++ b/material-ripple/index.js @@ -24,7 +24,7 @@ import '@material/ripple/mdc-ripple.scss'; * Export the ripple helper. */ export default (e) => { - if (!e) { + if (!e || !e.getBoundingClientRect) { return ''; } let dimensions = e.getBoundingClientRect();