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
Preserve the currentMonth to avoid weird jumps in the calendar
Henriette Darge752c83beaa24
diff --git a/frontend/src/app/shared/components/datepicker/wp-modal-date-picker/wp-modal-date-picker.component.ts b/frontend/src/app/shared/components/datepicker/wp-modal-date-picker/wp-modal-date-picker.component.tsindex 3d538b97855..513912bbb91 100644--- a/frontend/src/app/shared/components/datepicker/wp-modal-date-picker/wp-modal-date-picker.component.ts+++ b/frontend/src/app/shared/components/datepicker/wp-modal-date-picker/wp-modal-date-picker.component.ts@@ -129,7 +129,10 @@ export class OpWpModalDatePickerComponent extends UntilDestroyedMixin implements// flatpickr jumps the calendar date to the due date, which is annoying.if (this.isDifferentDates(details.dates, details.mode)) {[this.startDateValue, this.dueDateValue] = details.dates;+ const currentMonth = this.datePickerInstance.datepickerInstance.currentMonth;+this.datePickerInstance.setDates(details.dates);+ this.datePickerInstance.datepickerInstance.changeMonth(currentMonth, false);}this.datePickerInstance.setOption('mode', details.mode);