Skip to content

Fix: Proper onClick handling for MenuGridRow#35795

Open
adamsamec wants to merge 2 commits intomicrosoft:masterfrom
adamsamec:fix-onclick-handling-for-menugridrow
Open

Fix: Proper onClick handling for MenuGridRow#35795
adamsamec wants to merge 2 commits intomicrosoft:masterfrom
adamsamec:fix-onclick-handling-for-menugridrow

Conversation

@adamsamec
Copy link
Contributor

Description of changes

This PR enables using own mouse click and Enter/spacebar key press handler on the MenuGridRow and MenuGridItem components via the onClick prop. Previously, using an onClick handler did not fire the event for Enter and spacebar presses. Pressing Enter on menu grid row instead incorrectly resulted in only moving keyboard focus to the first focusable child of the row.

@adamsamec adamsamec requested a review from a team as a code owner February 26, 2026 17:33
@github-actions
Copy link

📊 Bundle size report

✅ No changes found

@github-actions
Copy link

Pull request demo site: URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant