diff --git a/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html b/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html index 08511162bd..7cf41ef463 100644 --- a/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html +++ b/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html @@ -6,6 +6,7 @@ (change)="setValues($event)" (add)="repositionDropdown()" (remove)="repositionDropdown()" + (open)="repositionDropdown()" [compareWith]="compareByHrefOrString" [clearSearchOnAdd]="true" [placeholder]="text.placeholder" diff --git a/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts b/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts index f0748d1b9f..c1dc53b98e 100644 --- a/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts +++ b/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts @@ -112,8 +112,11 @@ export class FilterToggledMultiselectValueComponent implements OnInit, AfterView } public repositionDropdown() { - if (this.ngSelectInstance && this.ngSelectInstance.dropdownPanel) { - setTimeout(() => this.ngSelectInstance.dropdownPanel.adjustPosition(), 25); + if (this.ngSelectInstance) { + setTimeout(() => { + const component = (this.ngSelectInstance) as any; + component.dropdownPanel._updatePosition(); + }, 25); } }