Refresh code editor when variables uncovered

This commit is contained in:
Gregory Schier 2018-11-30 01:18:52 -05:00
parent 300615e155
commit 2c601af8d1

View File

@ -771,7 +771,8 @@ class CodeEditor extends React.Component {
className,
dynamicHeight,
style,
type
type,
isVariableUncovered
} = this.props;
const classes = classnames(className, {
@ -859,6 +860,7 @@ class CodeEditor extends React.Component {
onClick={onClick}
onMouseLeave={onMouseLeave}>
<textarea
key={isVariableUncovered ? 'foo' : 'bar'}
id={id}
ref={this._handleInitTextarea}
style={{ display: 'none' }}