diff --git a/src/app/shared/forms/planet-tag-input-dialog.component.ts b/src/app/shared/forms/planet-tag-input-dialog.component.ts index dadf58f61e..fdff521c14 100644 --- a/src/app/shared/forms/planet-tag-input-dialog.component.ts +++ b/src/app/shared/forms/planet-tag-input-dialog.component.ts @@ -235,6 +235,12 @@ export class PlanetTagInputDialogComponent { Object.keys(form.controls).forEach(key => { const control = form.get(key); control?.clearValidators(); + + if (key === 'name') { + control?.setValidators(this.tagNameSyncValidator()); + control?.setAsyncValidators(ac => this.tagNameAsyncValidator(ac)); + } + control?.markAsUntouched(); control?.updateValueAndValidity(); });