MudBlazor/MudBlazor

MudDateRangePicker ResetAsync() does not affect the DateRange or the current focused period

オープン

#9,692 opened on 2024/08/22

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,631 件のフォーク)batch import
buggood first issuehas workaround

Repository metrics

Stars
 (10,394 個のスター)
PR merge metrics
 (平均マージ 6d 6h) (30d で 108 merged PRs)

説明

Things to check

  • I have searched the existing issues for this bug
  • To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudDateRangePicker

What happened?

If you select a range from the previous year and then call ResetAsync() the focus of the control remains on the previously selected period. The DateRange is also unaffected

Expected behavior

The focused period should return to the current period and the DateRange should be cleared

Reproduction link

https://try.mudblazor.com/snippet/cOcyuMwQAuWsDeXL

Reproduction steps

  1. Select a date range from 2021
  2. Click the button
  3. Date range and focused period in control are left unchanged

Relevant log output

No response

Version (bug)

7.6.0

Version (working)

No response

What browsers are you seeing the problem on?

Chrome

On which operating systems are you experiencing the issue?

macOS

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

コントリビューターガイド