I would reach out to Opti support to see if this is a known issue.
Thank you, Aniket. I reached Opti for that problem.
The problem was that FormContainerBlock.cs had commented line:
@await Html.PartialAsync("FormContainerInitScript", Model)
Uncommenting the above line helped with the case.
Using Episerver.Forms, after submitting data, when there are validation errors, aria-invalid remains false.
Part of HTML after form submission for Type = Text where Validators is set to Required:
Is that a bug or configuration issue?