From 22a2d263d4a40902da571b40eb8416f650f3b661 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Wed, 11 Mar 2015 12:14:13 +1100 Subject: [PATCH] Run picture-fill *after* re-rendering. #43 --- app/components/Layout.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/Layout.jsx b/app/components/Layout.jsx index 6199433..43eb464 100644 --- a/app/components/Layout.jsx +++ b/app/components/Layout.jsx @@ -82,9 +82,8 @@ var Layout = React.createClass({ }); }, - componentWillReceiveProps: function(nextProps) { - if (nextProps.params) - this.pictureFill(); + componentDidUpdate: function() { + this.pictureFill(); }, // Runs the picturefill polyfill