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

Avoid heavy scrolling after already activating the field to avoid that the autocompleter dropdown overlaps the input

Henriette Darged3b9e403c262
diff --git a/spec/support/edit_fields/edit_field.rb b/spec/support/edit_fields/edit_field.rb
index 2a9b545de75..e14550dc0d1 100644
--- a/spec/support/edit_fields/edit_field.rb
+++ b/spec/support/edit_fields/edit_field.rb
@@ -190,7 +190,7 @@ class EditField
# Set or select the given value.
# For fields of type select, will check for an option with that value.
def set_value(content)
- scroll_to_element(input_element)
+ scroll_to_element(input_element, block: :nearest)
if autocompleter_field?
autocomplete(content)
elsif using_cuprite?