Skip to content

Commit 4937431

Browse files
authored
Select: fix null-valued options (#6493)
1 parent 1982068 commit 4937431

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Blazorise/Components/Select/SelectItem.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public bool CompareTo( object value )
5252
/// <summary>
5353
/// Convert the value to string because option tags are working with string internally. Otherwise some datatypes like booleans will not work as expected.
5454
/// </summary>
55-
protected string StringValue => Value?.ToString();
55+
protected string StringValue => Value?.ToString() ?? string.Empty;
5656

5757
/// <summary>
5858
/// Gets or sets the item value.

0 commit comments

Comments
 (0)