diff --git a/projects/ngneat/error-tailor/src/lib/control-error.directive.ts b/projects/ngneat/error-tailor/src/lib/control-error.directive.ts index c40d39e..590f1dc 100644 --- a/projects/ngneat/error-tailor/src/lib/control-error.directive.ts +++ b/projects/ngneat/error-tailor/src/lib/control-error.directive.ts @@ -115,7 +115,7 @@ export class ControlErrorsDirective implements OnInit, OnDestroy { instance.customClass = this.controlErrorsClass; } - if (this.mergedConfig.controlErrorComponentAnchorFn) { + if (!this.controlErrorAnchor && this.mergedConfig.controlErrorComponentAnchorFn) { this.customAnchorDestroyFn = this.mergedConfig.controlErrorComponentAnchorFn( this.host.nativeElement as HTMLElement, (this.ref.hostView as EmbeddedViewRef).rootNodes[0] as HTMLElement