Hi, i show an EditForm in a SfDialog. The Submit Button (SfButton) sits in the footer of the dialog. If i hit Enter key in any InputText component the ValidSubmitHandler calls an EventCallback and closes the dialog. But the EventCallback is called twice. Are there errors from my side or is it a "hidden feature" (bug?)
Code (head) for EditForm is:
<EditForm id="editOrderDialogId" Model="_orderForUpdateDto" OnValidSubmit="ValidSubmitHandler">
Code (SfButton) is:
<SfButton class="me-1" IsPrimary="true" type="submit" form="editOrderDialogId">Speichern</SfButton>
EventCallback is:
[Parameter, EditorRequired] public EventCallback<OrderForUpdateDto> DialogResultHandler { get; set; }and
private async Task ValidSubmitHandler()
{
await DialogResultHandler.InvokeAsync(_orderForUpdateDto);
await HideAsync();
}
Thanks in advance