Skip to content

Commit

Permalink
🐛 fix(Carousel): ChildContent and delimiters are missing (#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Aug 26, 2024
1 parent 4e7e8ee commit 5a0095d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Masa.Blazor/Components/Carousel/MCarousel.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
{
@if (!HideDelimiters)
{
GenDelimiters();
@GenDelimiters()
}

@if (Progress || !string.IsNullOrWhiteSpace(ProgressColor))
{
GenProgress();
@GenProgress()
}
};

Expand Down
1 change: 1 addition & 0 deletions src/Masa.Blazor/Components/Carousel/MCarouselItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ protected override RenderFragment GenChildContent()
builder.AddAttribute(1, "Class", "m-carousel__item");
builder.AddAttribute(2, "Src", Src);
builder.AddAttribute(3, "Height", ((MCarousel?)WindowGroup)?.InternalHeight);
builder.AddAttribute(4, "ChildContent", ChildContent);
builder.CloseComponent();
};
}
Expand Down

0 comments on commit 5a0095d

Please sign in to comment.