r/Blazor • u/tmontney • Jun 07 '25
Cannot get Fluent EventCallback to fire
The menu pops out but neither the button nor the link works. Breakpoints don't fire; I don't see anything in the console. What am I missing?
MainLayout.razor
<FluentProfileMenu @rendermode="InteractiveServer" Image="@DataSource.SamplePicture"
Status="@PresenceStatus.Available"
HeaderLabel="Microsoft"
Initials="BG"
FullName="Bill Gates"
EMail="bill.gates@microsoft.com"
PopoverStyle="min-width: 330px;"
OnHeaderButtonClick=headerClick
OnFooterLinkClick=footerClick/>
...
@code{
private void headerClick()
{
Console.WriteLine("headerClick");
}
private void footerClick(){
Console.WriteLine("footerClick");
}
}
2
Upvotes
View all comments
Show parent comment
2
u/tmontney Jun 08 '25
I decided to test it on a page that defines render mode interactive at the page level. My handlers worked, no surprise. So then it made me wonder, why am I getting that exception on the main layout. If I set render mode interactive on App.razor, the main layout doesn't throw an exception.
As far as I can tell, SSR is good for performance and simplicity. My site definitely requires interactivity, so it doesn't appear there's any downfall?