From 4d218f7dd3b0375ca4f41236f001732ab0f93809 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Thu, 1 Feb 2018 15:25:31 -0500 Subject: [PATCH] don't break RHL --- packages/react-widgets/src/Popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-widgets/src/Popup.js b/packages/react-widgets/src/Popup.js index 4315b71ca..8728a0c02 100644 --- a/packages/react-widgets/src/Popup.js +++ b/packages/react-widgets/src/Popup.js @@ -6,8 +6,8 @@ import SlideDownTransition from './SlideDownTransition'; import { elementType }from './util/PropTypes'; class StaticContainer extends React.Component { - shouldComponentUpdate = ({ shouldUpdate }) => !!shouldUpdate - render = () => this.props.children; + shouldComponentUpdate({ shouldUpdate }) { return !!shouldUpdate; } + render() { return this.props.children; } } class Popup extends React.Component {