forked from MudBlazor/MudBlazor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DateRangePicker: Fix DateRangePicker Close on Clear (MudBlazor#5340)
- Loading branch information
1 parent
a74a88a
commit a6b5027
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...udBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerCloseOnClearTest.razor
This file contains 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
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; } | ||
} |