-
Notifications
You must be signed in to change notification settings - Fork 460
[AppBar] Fix AppBarItem OnClick not being handeled in popover #4421
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
Conversation
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 61.2%
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes issue #4418 where an AppItem's OnClick event handler was not being passed through to FluentAppBarItem components when rendered in the popover. The fix adds the OnClick parameter binding in two locations where FluentAppBarItem is instantiated.
Key Changes:
- Added
OnClick="@item.OnClick"parameter toFluentAppBarItemcomponents in both the main items list and the popover overflow items
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Core/Components/AppBar/FluentAppBar.razor | Added OnClick parameter binding to FluentAppBarItem components on lines 15 and 56 to properly pass through click event handlers |
| examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml | Auto-generated XML documentation updates for MessageService (appears unrelated to the AppBar fix) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fix #4418. In popover, an AppItem's OnClick was not being passed through.