From eedc60e12f3eac07ec13d06cdd557cdc15dba940 Mon Sep 17 00:00:00 2001 From: Guillaume Potier Date: Wed, 12 Jul 2017 10:51:51 +0200 Subject: [PATCH] Fix scheduleUpdate call if this._popper does not exist --- src/Popper.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Popper.jsx b/src/Popper.jsx index 9386bf1..4774567 100644 --- a/src/Popper.jsx +++ b/src/Popper.jsx @@ -53,7 +53,7 @@ class Popper extends Component { this._updatePopper() } - if (lastProps.children !== this.props.children) { + if (this._popper && lastProps.children !== this.props.children) { this._popper.scheduleUpdate() } }