fix #4398 - InputList component not handling scenario where input is reset to nothing
This commit is contained in:
parent
f057688e7d
commit
1209739398
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user