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
Do not disable submit button on form preview.
Dombi Attila8d9abd66efeb
diff --git a/frontend/src/stimulus/controllers/form-preview.controller.ts b/frontend/src/stimulus/controllers/form-preview.controller.tsindex 0b3d44fc217..a89fd3266dd 100644--- a/frontend/src/stimulus/controllers/form-preview.controller.ts+++ b/frontend/src/stimulus/controllers/form-preview.controller.ts@@ -41,10 +41,9 @@ export default class FormPreviewController extends Controller<HTMLFormElement> {}const form = this.element;- const submitUrl = form.action;+ const defaultSubmitUrl = form.action;form.action = this.urlValue;- const submitter = document.querySelector(`button[form="${form.id}"][type="submit"]`) as HTMLElement;- form.requestSubmit(submitter);- form.action = submitUrl;+ form.requestSubmit();+ form.action = defaultSubmitUrl;}}