1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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

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

Fixes #5694
This commit is contained in:
Darryl 2018-11-21 16:25:00 +08:00 committed by Tim Neutkens
parent 19db04f302
commit f177be9e05

View file

@ -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 () {