Skip to content

Commit

Permalink
Fix bug report with-portals example vercel#5694
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylsepeda committed Nov 21, 2018
1 parent c870d03 commit 2fc52b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/with-portals/components/Portal.js
Expand Up @@ -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 () {
Expand Down

0 comments on commit 2fc52b7

Please sign in to comment.