Skip to content

Commit c659c86

Browse files
Update CuesheetData.razor
1 parent 1b08c7c commit c659c86

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

AudioCuesheetEditor/Shared/Cuesheet/CuesheetData.razor

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ along with Foobar. If not, see
4242
</MudForm>
4343
}
4444
@code {
45-
//TODO: Undoing & Redoing the audiofile doesn't set the validation error correctly
4645
[CascadingParameter]
4746
public Cuesheet? Cuesheet { get; set; }
4847

@@ -63,12 +62,11 @@ along with Foobar. If not, see
6362
}
6463
}
6564

66-
protected override async Task OnAfterRenderAsync(bool firstRender)
65+
protected override void OnParametersSet()
6766
{
68-
await base.OnAfterRenderAsync(firstRender);
69-
if (form != null)
67+
base.OnParametersSet();
68+
if (form?.IsTouched == true)
7069
{
71-
await form.Validate();
7270
SetAudiofileValidationText();
7371
}
7472
}

0 commit comments

Comments
 (0)