fix #4398 - InputList component not handling scenario where input is reset to nothing

This commit is contained in:
sbwalker 2024-07-11 13:35:46 -04:00
parent f057688e7d
commit 1209739398

View File

@ -38,13 +38,10 @@
protected void OnChange(ChangeEventArgs e) protected void OnChange(ChangeEventArgs e)
{ {
if (!string.IsNullOrEmpty(e.Value.ToString())) Value = e.Value.ToString();
if (ValueChanged.HasDelegate)
{ {
Value = e.Value.ToString(); ValueChanged.InvokeAsync(Value);
if (ValueChanged.HasDelegate)
{
ValueChanged.InvokeAsync(Value);
}
} }
} }
} }