Does asp-validation-summary have wrong behaviour?
I have created a form wherien I am using asp-validation-summary tag helper to show errors. In my post request, I add an error using ModelState.AddModelError("","My Error") and return the View.
If the summary tag helper is used as asp-validation-summary="All", the html tag is rendered as
<div class="validation-summary-errors" data-valmsg-summary="true"></div>
whereas if I use asp-validation-summary="ModelOnly" the html tag is rendered as
<div class="validation-summary-errors"></div>
without the data-valmsg-summary=true property.
Am I missing something here?Here are the specs for the environment https://pastebin.com/pnm5Gak5
Is the tag helper behaviour dependent on the SDK (used 2.1.401) and must resolve if I use a different SDK?
0 comments:
Post a Comment