Prevent cell's edit mode from being incorrectly cleared when a text component is initialized. (#20120)

This commit is contained in:
Cory Rivera
2022-07-22 10:22:56 -07:00
committed by GitHub
parent 7176629e44
commit c2be6447b5
2 changed files with 31 additions and 25 deletions

View File

@@ -195,7 +195,6 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
this._register(this.themeService.onDidColorThemeChange(this.updateTheme, this));
this.updateTheme(this.themeService.getColorTheme());
this.setFocusAndScroll();
this.cellModel.isEditMode = false;
this._htmlMarkdownConverter = this._instantiationService.createInstance(HTMLMarkdownConverter, this.notebookUri);
this._register(this.cellModel.onOutputsChanged(e => {
this.updatePreview();