When using the ngx-monaco-diff-editor component, input changes for original are not detected properly.
|
if (this.editor && ((changes.code && !changes.code.firstChange) || (changes.modified && !changes.modified.firstChange))) { |
I guess replacing (changes.code && !changes.code.firstChange) with (changes.original && !changes.original.firstChange) would solve the issue.
Should I create a PR for this?
When using the
ngx-monaco-diff-editorcomponent, input changes fororiginalare not detected properly.ngx-monaco-editor/src/ngx-monaco-editor/src/lib/components/monaco-diff-editor/monaco-diff-editor.component.ts
Line 72 in 952a865
I guess replacing
(changes.code && !changes.code.firstChange)with(changes.original && !changes.original.firstChange)would solve the issue.Should I create a PR for this?