Merge pull request #4399 from sbwalker/dev

fix #4398 - InputList component not handling scenario where input is reset to nothing
This commit is contained in:
Shaun Walker 2024-07-11 13:36:14 -04:00 committed by GitHub
commit 0f019cd9b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
}
} }
} }
} }