diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts index 59e9cf5df..e1175c371 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts @@ -764,6 +764,8 @@ export class DescriptionEditorComponent extends BaseEditor { - this.applyTags() - }) } ngOnChanges(changes: SimpleChanges) { - if(changes['form']) this.applyTags(); + if(changes['form']) { + this.form?.valueChanges.pipe(takeUntil(this._destroyed)).subscribe( _ => this.applyTags()); + + this.applyTags(); + } } applyTags(){