Skip to content

Commit

Permalink
šŸ› fix(CarouselItem): the root tag should be a when Href is not null (ā€¦
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Nov 19, 2024
1 parent aa1256b commit 70e59bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Masa.Blazor/Components/Carousel/MCarousel.razor
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

private RenderFragment GenProgress() => __builder =>
{
<MProgressLinear Color="@ProgressColor" Value="@ProgressValue"/>
<MProgressLinear Class="m-carousel__progress" Color="@ProgressColor" Value="@ProgressValue"/>
};

}
2 changes: 0 additions & 2 deletions src/Masa.Blazor/Components/Carousel/MCarouselItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public class MCarouselItem : MWindowItem, IRoutable

[Parameter] public EventCallback<MouseEventArgs> OnClick { get; set; }

[Parameter] public string? Tag { get; set; }

[Parameter] public string? Target { get; set; }

[Parameter] public string? Src { get; set; }
Expand Down
5 changes: 3 additions & 2 deletions src/Masa.Blazor/I18n/EmbeddedLocales.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ļ»æusing System.Reflection;
ļ»æusing System.Collections.Concurrent;
using System.Reflection;

namespace Masa.Blazor.Core.I18n;

internal static class EmbeddedLocales
{
private static readonly Dictionary<string, string> s_availableResources;
private static readonly Dictionary<CultureInfo, Dictionary<string, string>> s_localeCaches = new();
private static readonly ConcurrentDictionary<CultureInfo, Dictionary<string, string>> s_localeCaches = new();
private static readonly Assembly s_resourcesAssembly = typeof(Masa.Blazor.I18n).Assembly;

static EmbeddedLocales()
Expand Down

0 comments on commit 70e59bc

Please sign in to comment.