Fix stuck loading indicator on safe images with no content

This commit is contained in:
Pat Hartl 2025-09-08 01:15:58 -05:00
parent 3f4df814ee
commit 691883dc09

View file

@ -43,6 +43,9 @@
.If(() => Fit == ImageFit.Cover, "safe-image-fit-cover")
.If(() => !String.IsNullOrWhiteSpace(Class), Class)
.Build();
if (String.IsNullOrWhiteSpace(Source) && Media == null)
_loading = false;
}
void OnLoad()