diff --git a/src/directive.ts b/src/directive.ts index 7a123b6..f8efbe3 100644 --- a/src/directive.ts +++ b/src/directive.ts @@ -115,6 +115,7 @@ export class AceEditorDirective { if (this._autoUpdateContent === true) { this._text = text; this.editor.setValue(text); + this.editor.clearSelection(); } } }