Repository navigation
[DatePicker] Fix unable to reach valid years in year view - #5392
Merged
Merged
Conversation
Vincent Baaij (vnbaaij)
requested a review
from Denis Voituron (dvoituron)
as a code owner
October 5, 2026 10:51
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new calculations can throw near calendar limits and with limited-range non-Gregorian calendars.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Fixes DatePicker year-view navigation boundaries and adds regression coverage.
Changes:
- Corrects adjacent 12-year range checks.
- Adds previous/next navigation tests.
- Cleans the demo test page.
| File | Description |
|---|---|
CalendarTitles.cs |
Updates year navigation bounds. |
CalendarTitlesTests.razor |
Adds boundary regression tests. |
Test.razor |
Removes unused debug input. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.3%
Microsoft.FluentUI.AspNetCore.Components.Charts - 100%
|
…crosoft/fluentui-blazor into users/vnbaaij/fix-issue-#5311
Denis Voituron (dvoituron)
requested changes
Oct 6, 2026
Denis Voituron (dvoituron)
approved these changes
Oct 8, 2026
This was referenced Oct 14, 2026
Closed
This was referenced Oct 19, 2026
Closed
Closed
This was referenced Oct 28, 2026
Merged
Closed
This was referenced Nov 9, 2026
This was referenced Nov 19, 2026
Merged
Closed
This was referenced Nov 27, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



The old bounds disabled navigation based on the displayed center year rather than whether the adjacent 12-year page contains a selectable year. That incorrectly hid the previous arrow for the reported DateOnly range and similarly blocked a next page when its first year matched MaxDate’s year. The updated checks compare those adjacent-page boundary years against MinDate and MaxDate.
Tests for checking these situations have been added.