From 12097393981260192752594256e3a8c14c7ea001 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 11 Jul 2024 13:35:46 -0400 Subject: [PATCH] fix #4398 - InputList component not handling scenario where input is reset to nothing --- Oqtane.Client/Modules/Controls/InputList.razor | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Oqtane.Client/Modules/Controls/InputList.razor b/Oqtane.Client/Modules/Controls/InputList.razor index 25de9fda..e187479b 100644 --- a/Oqtane.Client/Modules/Controls/InputList.razor +++ b/Oqtane.Client/Modules/Controls/InputList.razor @@ -38,13 +38,10 @@ protected void OnChange(ChangeEventArgs e) { - if (!string.IsNullOrEmpty(e.Value.ToString())) + Value = e.Value.ToString(); + if (ValueChanged.HasDelegate) { - Value = e.Value.ToString(); - if (ValueChanged.HasDelegate) - { - ValueChanged.InvokeAsync(Value); - } + ValueChanged.InvokeAsync(Value); } } } \ No newline at end of file