We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34a88ef commit 44be1cbCopy full SHA for 44be1cb
1 file changed
src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs
@@ -97,7 +97,12 @@ public partial class AvatarUpload<TValue>
97
}
98
99
var state = item?.IsValid ?? IsValid;
100
- return state is true ? "is-valid" : "is-invalid";
+ if (state == null)
101
+ {
102
+ return null;
103
+ }
104
+
105
+ return state.Value ? "is-valid" : "is-invalid";
106
107
108
/// <summary>
0 commit comments