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

Fix autocompleter is cut off inside the filter header.

Dombi Attilada606c6f3542
diff --git a/app/views/filters/_autocomplete.html.erb b/app/views/filters/_autocomplete.html.erb
index c85518e0844..ee53c9902bf 100644
--- a/app/views/filters/_autocomplete.html.erb
+++ b/app/views/filters/_autocomplete.html.erb
@@ -1,10 +1,11 @@
<div class="advanced-filters--filter-value <%= value_visibility %>">
<%= angular_component_tag autocomplete_options[:component],
inputs: {
- inputName: 'value',
+ inputName: "value",
multiple: true,
multipleAsSeparateInputs: false,
inputValue: filter.values,
+ appendTo: "body",
hiddenFieldAction: "change->filter--filters-form#autocompleteSendForm"
# Set on the template as there is a timing issue where the
# angular component is not yet ready in the DOM and hence
@@ -14,9 +15,9 @@
}.merge(autocomplete_options.except(:component)),
id: "#{filter.name}_value",
data: {
- 'filter-autocomplete': true,
- 'filter--filters-form-target': 'filterValueContainer',
- 'filter-name': filter.name
+ "filter-autocomplete": true,
+ "filter--filters-form-target": "filterValueContainer",
+ "filter-name": filter.name
}
%>
</div>