Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: DatePicker year selection not working with component within EditForm #2046

Closed
msb-incom opened this issue May 14, 2024 · 1 comment
Closed
Labels
triage New issue. Needs to be looked at

Comments

@msb-incom
Copy link
Contributor

🐛 Bug Report

When using a DatePicker within an EditForm, selecting a year using the year-view of a DatePicker will default to the current year. This does not happen when using the DatePicker outside an EditForm.

💻 Repro or Code Sample

This can be seen in the example on https://www.fluentui-blazor.net/Forms

🤔 Expected Behavior

After selecting a year, I would suspect the date to change to DateTime(year, 1, 1) and to open the month view for the selected year.

😯 Current Behavior

When selecting e.g. "2026"
image

.. you will return to current date:
image

🔦 Context

In the current state, the users of my application are unable to use the year-view in the DatePicker.

🌍 Your Environment

  • OS & Device: Windows
  • Browser: Microsoft Edge, Google Chrome
  • .NET and Fluent UI Blazor library Version: 8.0.2 and 4.7.2
@msb-incom
Copy link
Contributor Author

I submitted a PR that seeks to fix the issue 🙂

@vnbaaij vnbaaij closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage New issue. Needs to be looked at
Projects
None yet
Development

No branches or pull requests

2 participants