Handle if Parameter is set dynamically

This commit is contained in:
Leigh Pointer 2023-07-26 11:28:14 +02:00
parent 02e2aeb6d1
commit 2a0c983c2e

View File

@ -62,6 +62,13 @@
InputAttributes.Add(nameof(Required), true);
}
}
else
{
if (InputAttributes.ContainsKey(nameof(Required)))
{
InputAttributes.Remove(nameof(Required));
}
}
}
private async Task OnInput(ChangeEventArgs e)
{