We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 195deb5 commit 73d72b1Copy full SHA for 73d72b1
src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs
@@ -170,7 +170,7 @@ private void SetDefaultValue(string defaultValue)
170
}
171
else
172
{
173
- CurrentValueAsString = Items.FirstOrDefault()?.Value ?? string.Empty;
+ CurrentValueAsString = string.Empty;
174
175
RefreshDisplayText();
176
test/UnitTest/Components/CascaderTest.cs
@@ -159,7 +159,7 @@ public void SetDefaultValue_Ok()
159
pb.Add(a => a.Items, items);
160
pb.Add(a => a.Value, "Test");
161
});
162
- Assert.Equal("1", cut.Instance.Value);
+ Assert.Equal("", cut.Instance.Value);
163
164
cut.SetParametersAndRender(pb =>
165
0 commit comments