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
Always update the currently focused field last. Thus we guarantee that the datepicker jumps to the last entered date
Henriette Darge5dccd2237d54
diff --git a/frontend/src/app/shared/components/datepicker/datepicker.modal.ts b/frontend/src/app/shared/components/datepicker/datepicker.modal.tsindex 070a8995959..d64d556448f 100644--- a/frontend/src/app/shared/components/datepicker/datepicker.modal.ts+++ b/frontend/src/app/shared/components/datepicker/datepicker.modal.ts@@ -174,7 +174,10 @@ export class DatePickerModalComponent extends OpModalComponent implements AfterV// Always update the whole form to ensure that no values are lost/inconsistentif (this.singleDate) {this.updateDate('date', this.dates.date);- } else {+ } else if (this.datepickerService.currentlyActivatedDateField === 'start') {+ this.updateDate('end', this.dates.end);+ this.updateDate('start', this.dates.start);+ } else if (this.datepickerService.currentlyActivatedDateField === 'end') {this.updateDate('start', this.dates.start);this.updateDate('end', this.dates.end);}