Skip to content

CompareAttribute ignored with OnValidSubmit EditForm #10643

@smartprogrammer93

Description

@smartprogrammer93

Using an EditForm in Blazor client side
I have a model with compare attribute.
The error message does show when the password and confirm password are not the same but does not prevent form submission for some reason. Once the form is submitted the error message is removed.

Expected behavior

Prevent form submission and keep the error message

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.component ecosystemIndicates an issue which also has impact on 3rd party component ecosystem

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions