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
Filter valid dates when inputting
Oliver Günther3ac72c7e90ba
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.tsindex 96850474325..3777b03e9e9 100644--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts@@ -236,6 +236,7 @@ export class MultiDateModalComponent extends OpModalComponent implements AfterVi// 3. This is already a valid date. Since it is before the start date,the start date would be changed automatically to the first without the debounce.// 4. The debounce gives the user enough time to type the last number "9" before the changes are converted to the datepicker and the start date would be affected.debounceTime(500),+ filter((date) => validDate(date)),).subscribe((newStart) => {// When clearing the field, don't do anything else@@ -265,6 +266,7 @@ export class MultiDateModalComponent extends OpModalComponent implements AfterVi// 3. This is already a valid date. Since it is before the start date,the start date would be changed automatically to the first without the debounce.// 4. The debounce gives the user enough time to type the last number "9" before the changes are converted to the datepicker and the start date would be affected.debounceTime(500),+ filter((date) => validDate(date)),).subscribe((newEnd) => {// When clearing the field, don't do anything else