Skip to content

fix: restore menu list keyboard navigation after reconnect - #36871

Merged
Paul Mardling (PaulGMardling) merged 3 commits into
microsoft:masterfrom
asxxb:fix/menu-list-focusgroup-reconnect
Nov 25, 2026
Merged

Paul Mardling (PaulGMardling) merged 3 commits into
microsoft:masterfrom
asxxb:fix/menu-list-focusgroup-reconnect

Conversation

@asxxb

Copy link
Copy Markdown
Contributor

Previous Behavior

When a fluent-menu-list element was removed from the DOM and reinserted, its FocusGroup instance remained referenced after being disconnected. As a result, arrow-key navigation could stop working in Firefox and Safari.

New Behavior

Clear the existing FocusGroup reference when MenuList disconnects, allowing a new instance to be created when the element reconnects.

Add a regression test to verify that arrow-key navigation continues working after the menu list is moved in the DOM.

Related Issue(s)

@asxxb
aseeb shibin (asxxb) requested a review from a team as a code owner October 12, 2026 23:23
@asxxb

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@marchbox

Copy link
Copy Markdown
Contributor

aseeb shibin (@asxxb) Please run yarn change in root to add a change file

@github-actions

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

@asxxb

Copy link
Copy Markdown
Contributor Author

aseeb shibin (aseeb shibin (@asxxb)) Please run yarn change in root to add a change file

Hi! I've added the required Beachball change file and pushed the update. The check-packages workflow is currently awaiting maintainer approval. Could you please approve the workflow run when convenient? Thank you!

Copilot AI balanced review requested due to automatic review settings November 25, 2026 13:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the fix for menu-list arrow-key navigation after DOM removal and reinsertion.

No open issues 🎉

What changed in this PR

Fixes #36869 by restoring fluent-menu-list arrow-key navigation after DOM removal and reinsertion, addressing the reported Firefox and Safari behavior.

Changes:

  • Clears the disconnected FocusGroup reference so it can be recreated on reconnect.
  • Adds a regression test for arrow-key navigation after moving the menu list.
  • Adds a patch release change file for @fluentui/web-components.
File Description
packages/​web-components/​src/​menu-list/​menu-list.ts Clears the focus group reference during disconnection.
packages/​web-components/​src/​menu-list/​menu-list.spec.ts Tests arrow-key navigation after a DOM move.
change/​@fluentui-web-components-0c22cad8-1535-4970-b928-3554886f412f.json Records the fix for a patch release.

Review effort: Balanced

@PaulGMardling
Paul Mardling (PaulGMardling) merged commit 1047057 into microsoft:master Nov 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

@fluentui/web-components: fluent-menu-list loses its arrow keys after it is moved in the DOM (Firefox, Safari)

4 participants