Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix(CarsouelItem): OnClick doesn't work #2143

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -10,7 +10,7 @@

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

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

Check warning on line 13 in src/Masa.Blazor/Components/Carousel/MCarouselItem.cs

View workflow job for this annotation

GitHub Actions / pr

'MCarouselItem.Tag' hides inherited member 'MWindowItem.Tag'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.

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

Expand Down Expand Up @@ -47,6 +47,7 @@
builder.AddAttribute(2, "Src", Src);
builder.AddAttribute(3, "Height", ((MCarousel?)WindowGroup)?.InternalHeight);
builder.AddAttribute(4, "ChildContent", ChildContent);
builder.AddAttribute(5, "onclick", EventCallback.Factory.Create<MouseEventArgs>(this, OnClick));
builder.CloseComponent();
};
}
Expand Down
Loading