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

Switch type of duration field to allow only numbers being entered

Henriette Darge70be2c7cf29e
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 2c8063d2282..72fc2096815 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
@@ -97,6 +97,7 @@
[ngModel]="displayedDuration"
(ngModelChange)="updateDuration($event)"
[disabled]="!isSchedulable"
+ [type]="showFieldAsActive('duration') ? 'number' : 'text'"
(focusin)="handleDurationFocusIn()"
(focusout)="handleDurationFocusOut()"
></spot-input-field>