Skip to content

Commit

Permalink
DateRangePicker: Fix DateRangePicker Close on Clear (MudBlazor#5340)
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-maxeta authored and ScarletKuro committed May 6, 2024
1 parent a74a88a commit a6b5027
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@namespace MudBlazor.UnitTests.TestComponents
<MudPopoverProvider></MudPopoverProvider>

<MudDateRangePicker id="picker" @ref="_picker" Label="With action buttons" @bind-DateRange="DateRange">
<PickerActions>
<MudButton Class="mr-auto align-self-start" OnClick="@(() => _picker.Clear(@CloseOnClear))">Clear</MudButton>
</PickerActions>
</MudDateRangePicker>

@code {
MudDateRangePicker _picker;
[Parameter] public DateRange DateRange { get; set; }
[Parameter] public bool CloseOnClear { get; set; }
}

0 comments on commit a6b5027

Please sign in to comment.