PR #3423 enabled selection of dates in previous and next month.
While the date does get selected and emitted correctly, the view isn't updated to reflect the new current month (previous or next from the initial month).
This leads to rendering the wrong selected day, e.g. selecting 30 Dec 2024 when active month is January 2025 renders 30 Jan 2025 as being selected (see screenshot below) even though the date emitted in dateChange and dateSelect is correct, i.e. 30 Dec 2024.
Describe the bug
PR #3423 enabled selection of dates in previous and next month.
While the date does get selected and emitted correctly, the view isn't updated to reflect the new current month (previous or next from the initial month).
This leads to rendering the wrong selected day, e.g. selecting
30 Dec 2024
when active month isJanuary 2025
renders30 Jan 2025
as being selected (see screenshot below) even though the date emitted indateChange
anddateSelect
is correct, i.e.30 Dec 2024
.Describe how to reproduce the bug
Selected Date:
property at the bottom of the calendar example)Which Kirby version was used?
9.4.1
What was the expected behavior?
Calendar should switch to the month being selected (previous or next).
Add any screenshots
Initial month
January 2025
, selected date30 Dec 2024
:Please complete the following information:
Are there any additional context?
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Verification
To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.
NOT verified
label has been removed by a member of team Kirby; do not proceed until this is done.Implementation
The contributor who wants to implement this issue should:
Review
Once the issue has been implemented and is ready for review: