We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13d6799 + ec278de commit e197984Copy full SHA for e197984
client/modules/IDE/components/Editor.jsx
@@ -212,10 +212,7 @@ class Editor extends React.Component {
212
}
213
214
componentDidUpdate(prevProps) {
215
- if (
216
- this.props.file.content !== prevProps.file.content &&
217
- this.props.file.content !== this._cm.getValue()
218
- ) {
+ if (this.props.file.id !== prevProps.file.id) {
219
const oldDoc = this._cm.swapDoc(this._docs[this.props.file.id]);
220
this._docs[prevProps.file.id] = oldDoc;
221
this._cm.focus();
0 commit comments