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 {