Skip to content

Commit

Permalink
Fixed preact ripple for server side rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndWessels committed Apr 12, 2017
1 parent 1004858 commit 079fcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion material-ripple/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 079fcf6

Please sign in to comment.