mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
I'm trying to contribute on resolving issues, hope this help. Fixes #5694
This commit is contained in:
parent
19db04f302
commit
f177be9e05
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue