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 button types so that mobile doesn't use cancel as submit

Oliver Güntherb8f920e60e95
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
index 315ed042a02..1c4dc5c32e5 100644
--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
@@ -105,6 +105,7 @@
<div class="spot-action-bar">
<div class="spot-action-bar--right">
<button
+ type="button"
(click)="cancel()"
class="op-datepicker-modal--action button button_no-margin spot-action-bar--action"
data-qa-selector="op-datepicker-modal--action"
diff --git a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
index ba44303af6a..7eaa8bb8420 100644
--- a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
+++ b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
@@ -53,12 +53,14 @@
<div class="spot-action-bar">
<div class="spot-action-bar--right">
<button
+ type="button"
(click)="cancel()"
class="op-datepicker-modal--action button button_no-margin spot-action-bar--action"
data-qa-selector="op-datepicker-modal--action"
[textContent]="text.cancel"
></button>
<button
+ type="submit"
class="op-datepicker-modal--action button button_no-margin -highlight spot-action-bar--action"
data-qa-selector="op-datepicker-modal--action"
[textContent]="text.save"