diff --git a/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts index d97d1df662..66be53b237 100644 --- a/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts +++ b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts @@ -278,7 +278,7 @@ export class OpAutocompleterComponent extends UntilDestroyedMixin implements OnI setTimeout(() => { this.cdRef.detectChanges(); const component = this.ngSelectInstance; - if (component && component.dropdownPanel) { + if (this.appendTo && component && component.dropdownPanel) { // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access,no-underscore-dangle (component.dropdownPanel as any)._updatePosition(); } diff --git a/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts index b29cb53092..83a4440151 100644 --- a/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts +++ b/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts @@ -106,7 +106,7 @@ export class UserAutocompleterComponent extends UntilDestroyedMixin implements O //