Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Append the dropdown to the modal overlay to avoid offsets

Henriette Dargea701e02e78f6
diff --git a/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
index bdd99daf40f..0a7e7f7408c 100644
--- a/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
+++ b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
@@ -14,6 +14,7 @@
formControlName="project"
[apiFilters]="APIFiltersForProjects"
[mapResultsFn]="projectFilterFn.bind(this)"
+ appendTo=".op-modal-overlay"
></op-project-autocompleter>
<div
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html
index cf9cf7411cc..00e7d501c38 100644
--- a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html
+++ b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html
@@ -17,7 +17,6 @@
[apiFilters]="APIFilters"
[mapResultsFn]="this.mapProjectsFn.bind(this)"
- appendTo="body"
[placeholder]="text.please_select"
></op-project-autocompleter>
diff --git a/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.html b/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.html
index 5dfdf1eb2d9..aa45647006f 100644
--- a/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.html
+++ b/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.html
@@ -8,7 +8,7 @@
[focusDirectly]="focusDirectly"
[labelForId]="labelForId"
- appendTo="body"
+ [appendTo]="appendTo"
(change)="writeValue($event)"
>
diff --git a/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.ts
index 73e099bed68..faa8947f39b 100644
--- a/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/project-autocompleter/project-autocompleter.component.ts
@@ -98,6 +98,8 @@ export class ProjectAutocompleterComponent implements ControlValueAccessor {
@Input() public apiFilters:ApiV3ListFilter[] = [];
+ @Input() public appendTo:string = 'body';
+
// This function allows mapping of the results before they are fed to the tree
// structuring and destructuring algorithms used internally the this component
// to show the tree structure. By default it does not do much, but it is