Closed brettwinters closed 3 years ago
Describe the bug IsModifed property of the EditContext shows true when no change.
Conversely IsModified() is correct if there is a change or the selection is reset
To Reproduce Steps to reproduce the behavior:
OnInitialized()
FormModel.SelectedPerson = People.First();
<p>@context.IsModified()</p>
Expected behavior The EditContext should display IsModified == false when there is no change to the selection
Screenshots If applicable, add screenshots to help explain your problem.
Hosting Model (is this issue happening with a certain hosting model?):
Additional context I'm using the EditContext IsModified() to disable the submit button
https://github.com/dotnet/aspnetcore/issues/28590
Describe the bug IsModifed property of the EditContext shows true when no change.
Conversely IsModified() is correct if there is a change or the selection is reset
To Reproduce Steps to reproduce the behavior:
OnInitialized()
method :FormModel.SelectedPerson = People.First();
<p>@context.IsModified()</p>
Expected behavior The EditContext should display IsModified == false when there is no change to the selection
Screenshots If applicable, add screenshots to help explain your problem.
Hosting Model (is this issue happening with a certain hosting model?):
Additional context I'm using the EditContext IsModified() to disable the submit button