Skip to content

Commit

Permalink
fix(FEC-7312): preact portal fix in Explorer (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvir Hazout authored and OrenMe committed Oct 23, 2017
1 parent 71f56f7 commit 671ffa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/language/language.js
Expand Up @@ -35,6 +35,7 @@ const mapStateToProps = state => ({
class LanguageControl extends BaseComponent {
state: Object;
_controlLanguageElement: any;
_portal: any;

/**
* Creates an instance of LanguageControl.
Expand Down Expand Up @@ -194,10 +195,10 @@ class LanguageControl extends BaseComponent {
</SmartContainer>
}
{ this.state.cvaaOverlay ? (
<Portal into="#overlay-portal">
<Portal into="#overlay-portal" ref={ref => this._portal = ref}>
<CVAAOverlay player={this.player} onClose={() => {this.toggleCVAAOverlay(); this.onControlButtonClick();}} />
</Portal>
): null }
): <div /> }
</div>
)
}
Expand Down

0 comments on commit 671ffa7

Please sign in to comment.