From f177be9e0540822763ae9baa2a425cd4c9187a28 Mon Sep 17 00:00:00 2001 From: Darryl Date: Wed, 21 Nov 2018 16:25:00 +0800 Subject: [PATCH] Fix bug report with-portals example #5694 (#5714) I'm trying to contribute on resolving issues, hope this help. Fixes #5694 --- examples/with-portals/components/Portal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/with-portals/components/Portal.js b/examples/with-portals/components/Portal.js index c1f14355..4517a55d 100644 --- a/examples/with-portals/components/Portal.js +++ b/examples/with-portals/components/Portal.js @@ -4,6 +4,7 @@ import ReactDOM from 'react-dom' export class Portal extends React.Component { componentDidMount () { this.element = document.querySelector(this.props.selector) + this.forceUpdate() } render () {