Closed Kahbazi closed 4 years ago
When you say the element causing the submit, do you mean the button the user clicks to submit the form or something else?
Thanks for contacting us. A more idiomatic way to do this in Blazor would be for the event handler to be a lambda that passes a parameter from each case.
I'm writing a validation system for blazor and I want to validate my form based on how it get submitted. How can I achieve that?
Here's a sample of what I'm trying to do
Describe the solution you'd like
I think the solution is that if it's possible somehow the element or component that causes Submit should be passed to
EditForm.OnSubmit
event, and then toEditContext.Validate
and finally toEditContext.OnValidationRequested
.