-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(module:form): form.reset() will make new editContext #1035
fix(module:form): form.reset() will make new editContext #1035
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1035 +/- ##
=========================================
- Coverage 5.48% 5.34% -0.15%
=========================================
Files 426 426
Lines 23170 23181 +11
=========================================
- Hits 1270 1238 -32
- Misses 21900 21943 +43
Continue to review full report at Codecov.
|
Thank you. |
Not yet. I was trying to address milestone issue. You can wait with merge, I will try to have a look at the other form validation issue. |
fixes 851 fixes 982 fixes 991
@ElderJames In commit fe3a0d6 I added single extra method Also - test are failing on tabs again. I did not change anything in tabs....I will look into that... Edit: I had a look into the tests - in my dev machine it failed on the same test. Then I rerun it and it was ok. I have run the tests since then 4 times, with 100% success rate... I don't know, seems to me it was a fluke...How can I reissue the checks in github? |
@anddrzejb Thanks for fixing so many issues. The check is pass while I re-run it. |
Got lucky here - a lot of the issues were simple fix & same fix applied to most of them. |
@ElderJames Apparently there is nothing to be fixed in #1036 so I think you can merge this PR if you are fine with it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* fix(module:form): form.reset() will make new editContext fixes 947 * fix(module:form): validation is reset when model changes fixes 851 fixes 982 fixes 991 * feat(module:form): validation reset method
* fix(module:form): form.reset() will make new editContext fixes 947 * fix(module:form): validation is reset when model changes fixes 851 fixes 982 fixes 991 * feat(module:form): validation reset method
🤔 This is a ...
🔗 Related issue link
#947
💡 Background and solution
Microsoft.Aspnetcore.Componets.Forms.Editcontext
does not really have any way of resetting the validation messages (source). So inform.Reset()
method I assign anew EditContext(model)
method and that actually resets validation messages.☑️ Self Check before Merge