🔧 Maintenance Alert: World will be on Read-Only Mode on February 18th, 10:00 PM – 11:00 PM EST / 7:00 PM – 8:00 PM PST / 4:00 AM – 5:00 AM CET (Feb 19). Browsing available, but log-ins and submissions will be disabled.
AI OnAI Off
Hi, I'm still investigating this but when I have errors in my ModelState, they appear to be lost after rendering a content area.
Walking though a debugger after a form submission, the modelstate has an invalid property "Category" with an error from a required attribute of "The Category field is required." (watch on ModelState["Category"].Errors[0].ErrorMessage)
I stepped past @Html.PropertyFor(m => m.CurrentPage.ContentArea) before my form with a single content block containing only one XhtmlString property. After that the ModelState still has the "Category" property marked invalid, but the Errors collection is now empty.
Any ideas?