Properly handle value changes with archive file inputs

This commit is contained in:
Pat Hartl 2023-03-30 20:11:20 -05:00
parent 9cfca95f09
commit fb9c89768d

View file

@ -4,7 +4,7 @@
<Space Style="display: flex">
<SpaceItem Style="flex-grow: 1">
<Input Type="text" @bind-Value="Value" />
<Input Type="text" @bind-Value="Value" OnChange="ValueChanged" />
</SpaceItem>
@if (ArchiveId != Guid.Empty) {
<SpaceItem>
@ -43,7 +43,7 @@
modalRef.OnOk = async (results) =>
{
Value = results.FirstOrDefault().FullName;
Value = "{InstallDir}/" + results.FirstOrDefault().FullName;
if (ValueChanged.HasDelegate)
await ValueChanged.InvokeAsync(Value);