mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Refresh code editor when variables uncovered
This commit is contained in:
parent
300615e155
commit
2c601af8d1
@ -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' }}
|
||||
|
Loading…
Reference in New Issue
Block a user