Commit f177be9e authored by Darryl's avatar Darryl Committed by Tim Neutkens

Fix bug report with-portals example #5694 (#5714)

I'm trying to contribute on resolving issues,
hope this help.

Fixes #5694
parent 19db04f3
...@@ -4,6 +4,7 @@ import ReactDOM from 'react-dom' ...@@ -4,6 +4,7 @@ import ReactDOM from 'react-dom'
export class Portal extends React.Component { export class Portal extends React.Component {
componentDidMount () { componentDidMount () {
this.element = document.querySelector(this.props.selector) this.element = document.querySelector(this.props.selector)
this.forceUpdate()
} }
render () { render () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment