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 chrome reported issue: A form field element has neither an id nor a name attribute.

Eric-Guoc14b9c66dc59
diff --git a/frontend/src/app/core/global_search/input/global-search-input.component.html b/frontend/src/app/core/global_search/input/global-search-input.component.html
index 61491b30798..86954b11959 100644
--- a/frontend/src/app/core/global_search/input/global-search-input.component.html
+++ b/frontend/src/app/core/global_search/input/global-search-input.component.html
@@ -18,7 +18,7 @@
class="global-search"
[placeholder]="placeholder"
[classes]="{'top-menu-search--input': true, '-markable': markable, '-expanded': expanded }"
- [inputAttrs]="{ 'class': 'global-search--input' }"
+ [inputAttrs]="{ 'class': 'global-search--input', 'name': 'global-search--input' }"
[openOnEnter]="true"
[labelRequired]="false"
[focusDirectly]="isFocusedDirectly"