Hi Paul,
Greetings from Syncfusion support.
We have checked the shared code snippet and screenshot. The reported issue is occurred due to call the validate method(disabled=”context.Validate()”) for the disabled attribute in the button element. When you modify the form element, the whole form element will be validated due to this expression. So, we suggest you to update the disabled attribute in the valid and invalid submit action handler to get rid of the reported issue.
<input tabindex="21" type="submit" disabled="@isDisabled" class="form-control col-1 btn btn-primary " value="Save" />
@code{
public bool isDisabled { get; set; } = false;
protected async Task SavePatient() // valid submit action
{
isDisabled = false;
}
public void InvalidSubmit() // invalid submit action
{
isDisabled = true;
}
} |
Please find the sample from the below link.
Regards,
Berly B.C