Skip to content

Commit 120fbd9

Browse files
committed
fix(code-editor): avoid emitting change event for programmatic updates (#14)
1 parent 07010f1 commit 120fbd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

projects/code-editor/code-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export class CodeEditor implements OnChanges, OnInit, OnDestroy, ControlValueAcc
291291
setValue(value: string) {
292292
this.view.dispatch({
293293
changes: { from: 0, to: this.view.state.doc.length, insert: value },
294-
annotations: Transaction.addToHistory.of(false),
294+
annotations: [Transaction.addToHistory.of(false), External.of(true)],
295295
});
296296
}
297297

0 commit comments

Comments
 (0)