-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HxInputDate_Revalidation_Test - dotnet/aspnetcore#60334
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
....TestApp/Havit.Blazor.TestApp.Client/HxInputDateTests/HxInputDate_Revalidation_Test.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,18 @@ | ||
@page "/HxInputDate_Revalidation" | ||
@rendermode InteractiveServer | ||
|
||
https://github.com/dotnet/aspnetcore/issues/60334 | ||
<ol> | ||
<li>Type some invalid characters into the input => parsing error</li> | ||
<li>Click <i>Set valid date</i> button => ?new value not accepted?</li> | ||
</ol> | ||
|
||
|
||
<div class="col-lg-3"> | ||
<HxInputDate Label="Date" @bind-Value="_value" CalendarIcon="BootstrapIcon.Calendar" /> | ||
<HxButton Text="Set valid value" OnClick="@(() => _value = DateTime.Today)" Color="ThemeColor.Primary" /> | ||
</div> | ||
|
||
@code { | ||
public DateTime _value; | ||
} |