Skip to content

Commit

Permalink
fix: 🐛 inline anchor should be chosen over global
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Feb 18, 2021
1 parent f365424 commit c06154d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>).rootNodes[0] as HTMLElement
Expand Down

0 comments on commit c06154d

Please sign in to comment.