Browse Source

Do not scroll markdown on save.

pull/881/head
Sebastian 4 years ago
parent
commit
98f7340318
  1. 8
      frontend/src/app/shared/components/forms/markdown-editor.component.ts

8
frontend/src/app/shared/components/forms/markdown-editor.component.ts

@ -77,7 +77,13 @@ export class MarkdownEditorComponent extends StatefulControlComponent<State, str
}
public writeValue(obj: any) {
this.value = Types.isString(obj) ? obj : '';
const newValue = Types.isString(obj) ? obj : '';
if (newValue === this.value) {
return;
}
this.value = newValue;
if (this.simplemde) {
this.simplemde.value(this.value);

Loading…
Cancel
Save