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

[#66472] It is not possible to submit calculated value field form by pressing Enter/Return inside formula

Ivan Kuchine0d1b3b31068
diff --git a/frontend/src/stimulus/controllers/pattern-input.controller.ts b/frontend/src/stimulus/controllers/pattern-input.controller.ts
index 27d2f31fef0..84db0f1dfa6 100644
--- a/frontend/src/stimulus/controllers/pattern-input.controller.ts
+++ b/frontend/src/stimulus/controllers/pattern-input.controller.ts
@@ -97,6 +97,8 @@ export default class PatternInputController extends Controller {
input_keydown(event:KeyboardEvent) {
if (event.key === 'Enter') {
event.preventDefault();
+ this.formInputTarget.form?.requestSubmit();
+ return;
}
if (event.key === 'ArrowDown') {