Skip to content

feat(#3370): Date Picker and and Calendar improvements#3376

Merged
chrisolsen merged 1 commit intodevfrom
eric/3370-calendar-improvements
Feb 17, 2026
Merged

feat(#3370): Date Picker and and Calendar improvements#3376
chrisolsen merged 1 commit intodevfrom
eric/3370-calendar-improvements

Conversation

@willcodeforcoffee
Copy link
Copy Markdown
Collaborator

@willcodeforcoffee willcodeforcoffee commented Jan 30, 2026

Before (the change)

Lots of issues that are fixed in this PR:

  • After you selected January 31 you could not change the calendar to February, or any month with <31 days in it. There was a bug where the day selected would be kept, making it invalid and preventing the calendar redrawing (February 31 is not valid).

  • For the Calendar and DatePicker a new value is never propagated unless a date is clicked on.

  • When a date is selected in the Calendar that is the only day that is selected. Before, in some situations, if you selected a date like February 15, changing the month to March would show March 15 selected.

  • When a date is selected the Calendar might not show that day as selected if you changed the month or year, and then returned the calendar to the month of the selected date. For example if you selected February 15, 2026 and changed the month to March, changing it back might not show February 15, 2026 as selected anymore.

After (the change)

These things are all fixed!

There are a lot of changes that involve using .clone() with _currentDate and _selectedDate. This is because most of the errors were caused by using the same object references, so changes to one changed the other.

Unfortunately there are a few changes caused by Prettier also.

Make sure that you've checked the boxes below before you submit the PR

  • I have read and followed the setup steps
  • I have created necessary unit tests
  • I have tested the functionality in both React and Angular.

Steps needed to test

  • Given a date is selected, when the user navigates to a different month, then no day is visually selected in the calendar grid.
  • Given a date is selected, when the user navigates to a different year, then no day is visually selected in the calendar grid.
  • Given a date is selected, when the user navigates back to the selected date’s month/year, then the originally selected day is visually selected again in the calendar grid.
  • (DatePicker only) Given a date is selected, when the user navigates months/years, and closes the picker then the input value does not change
  • Given the calendar is showing a month/year that does not match the selected date, when the user selects a day, then:
    • that new date becomes selected
    • the calendar grid shows it as selected
    • the input updates accordingly
    • the calendar closes
  • For bug Can't select February in Date Picker #3305: if you select January 31 you can still select a date in February (28 days) or April (30 days)

@willcodeforcoffee willcodeforcoffee self-assigned this Jan 30, 2026
Comment thread apps/prs/angular/src/app/app.routes.ts Outdated
Comment thread apps/prs/react/src/main.tsx Outdated
@willcodeforcoffee willcodeforcoffee changed the title feat(#3370): Date Picker and and Calendar can select months feat(#3370): Date Picker and and Calendar improvements Jan 30, 2026
@willcodeforcoffee willcodeforcoffee force-pushed the eric/3370-calendar-improvements branch 2 times, most recently from ced0876 to 0c1c66e Compare February 4, 2026 20:50
Comment thread libs/angular-components/src/lib/components/calendar/calendar.ts
@willcodeforcoffee willcodeforcoffee force-pushed the eric/3370-calendar-improvements branch from 0c1c66e to f5643b9 Compare February 4, 2026 22:21
Comment thread apps/prs/angular/src/app/app.component.html Outdated
@willcodeforcoffee willcodeforcoffee marked this pull request as ready for review February 4, 2026 22:27
Comment thread libs/angular-components/src/lib/components/calendar/calendar.ts Outdated
Comment thread libs/web-components/src/components/calendar/Calendar.svelte
Comment thread libs/web-components/src/components/calendar/calendar.spec.ts Outdated
@ArakTaiRoth ArakTaiRoth force-pushed the eric/3370-calendar-improvements branch from f5643b9 to 53186d7 Compare February 6, 2026 00:11
Comment thread libs/angular-components/src/lib/components/calendar/calendar.ts
@willcodeforcoffee willcodeforcoffee force-pushed the eric/3370-calendar-improvements branch 2 times, most recently from 6fec990 to 13b4a79 Compare February 6, 2026 23:14
vanessatran-ddi
vanessatran-ddi previously approved these changes Feb 9, 2026
Copy link
Copy Markdown
Collaborator

@vanessatran-ddi vanessatran-ddi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug is fixed.

ArakTaiRoth
ArakTaiRoth previously approved these changes Feb 12, 2026
@ArakTaiRoth
Copy link
Copy Markdown
Collaborator

@chrisolsen This is ready to be merged

Comment thread libs/web-components/src/components/calendar/Calendar.svelte
Comment thread libs/web-components/src/components/calendar/Calendar.svelte
Comment thread libs/web-components/src/components/calendar/Calendar.svelte
@willcodeforcoffee willcodeforcoffee force-pushed the eric/3370-calendar-improvements branch from 7e5ac15 to b232370 Compare February 13, 2026 21:03
@ArakTaiRoth
Copy link
Copy Markdown
Collaborator

@chrisolsen This is ready to be merged

@willcodeforcoffee willcodeforcoffee force-pushed the eric/3370-calendar-improvements branch from b232370 to 19eaef7 Compare February 17, 2026 23:02
@chrisolsen chrisolsen merged commit e1015f9 into dev Feb 17, 2026
4 checks passed
@chrisolsen chrisolsen deleted the eric/3370-calendar-improvements branch February 17, 2026 23:41
@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.41.0-dev.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.11.0-dev.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 4.11.0-dev.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.11.0-dev.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.41.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.11.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.11.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 4.11.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.41.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen chrisolsen added the released Released into production. label Feb 27, 2026
@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 4.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 7.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 5.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clear calendar day selection when year and/or month changes Can't select February in Date Picker

5 participants