Skip to content

fix(menu): typeahead in ContextMenu + NavHeadingMenu (menus-11)#3432

Merged
cixzhang merged 1 commit into
navi/feat/use-typeaheadfrom
navi/feat/typeahead-context-nav-menus
Jul 2, 2026
Merged

fix(menu): typeahead in ContextMenu + NavHeadingMenu (menus-11)#3432
cixzhang merged 1 commit into
navi/feat/use-typeaheadfrom
navi/feat/typeahead-context-nav-menus

Conversation

@cixzhang

@cixzhang cixzhang commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Stacked on #3431 (which adds useTypeahead + DropdownMenu). Part of the accessibility & keyboard-management program (#3343). Extends menus-11 across the menu family.

What this adds

Wires the shared useTypeahead hook into the remaining menu surfaces:

Same integration seam as DropdownMenu: typeahead runs in the menu's listKeyDown before arrow navigation, using each menu's listRef items + useListFocus.focusItem. No change to the shared roving hooks.

Tests

ContextMenu: typing focuses the matching item. Full ContextMenu + NavMenu + MoreMenu suites green (57 tests), typecheck + lint clean.

Note: must merge after #3431.

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 2, 2026 3:14pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 2, 2026
@cixzhang cixzhang marked this pull request as ready for review July 2, 2026 18:19
Comment thread packages/core/src/NavMenu/NavHeadingMenu.tsx
@cixzhang cixzhang merged commit d50cb73 into navi/feat/use-typeahead Jul 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants