From d8f383fee5e4679bf953ade1457217cb9d2b5f4b Mon Sep 17 00:00:00 2001 From: capdiem Date: Tue, 10 Sep 2024 18:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(CarsouelItem):=20OnClick=20d?= =?UTF-8?q?oesn't=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Masa.Blazor/Components/Carousel/MCarouselItem.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Masa.Blazor/Components/Carousel/MCarouselItem.cs b/src/Masa.Blazor/Components/Carousel/MCarouselItem.cs index 4841b50c95..72e88a5371 100644 --- a/src/Masa.Blazor/Components/Carousel/MCarouselItem.cs +++ b/src/Masa.Blazor/Components/Carousel/MCarouselItem.cs @@ -47,6 +47,7 @@ protected override RenderFragment GenChildContent() builder.AddAttribute(2, "Src", Src); builder.AddAttribute(3, "Height", ((MCarousel?)WindowGroup)?.InternalHeight); builder.AddAttribute(4, "ChildContent", ChildContent); + builder.AddAttribute(5, "onclick", EventCallback.Factory.Create(this, OnClick)); builder.CloseComponent(); }; }