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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Automatically focus the input field
Henriette Dargea4d3bde73fe5
diff --git a/app/components/work_package_relations_tab/add_work_package_child_form_component.html.erb b/app/components/work_package_relations_tab/add_work_package_child_form_component.html.erbindex affa7550c3e..17142756557 100644--- a/app/components/work_package_relations_tab/add_work_package_child_form_component.html.erb+++ b/app/components/work_package_relations_tab/add_work_package_child_form_component.html.erb@@ -25,7 +25,7 @@resource: 'work_packages',searchKey: 'subjectOrId',openDirectly: false,- focusDirectly: false,+ focusDirectly: true,dropdownPosition: 'bottom',appendTo: "##{DIALOG_ID}",data: { test_selector: ID_FIELD_TEST_SELECTOR }diff --git a/app/components/work_package_relations_tab/work_package_relation_form_component.html.erb b/app/components/work_package_relations_tab/work_package_relation_form_component.html.erbindex ea3d88f96af..0a6f63688a4 100644--- a/app/components/work_package_relations_tab/work_package_relation_form_component.html.erb+++ b/app/components/work_package_relations_tab/work_package_relation_form_component.html.erb@@ -45,7 +45,7 @@url:,relations: true, # Activates relations fetch mode in the autocompleteopenDirectly: false,- focusDirectly: false,+ focusDirectly: true,dropdownPosition: 'bottom',appendTo: "##{DIALOG_ID}",data: { test_selector: TO_ID_FIELD_TEST_SELECTOR}@@ -56,6 +56,7 @@my_form.text_field(name: :description,label: Relation.human_attribute_name(:description),+ autofocus: relation.persisted?)endend