Skip to content

fix(web-components): support middle-click link navigation - #36579

Open
Bhat Muneeb (bhatmuneeb1) wants to merge 1 commit into
microsoft:masterfrom
bhatmuneeb1:fix-web-components-middle-click
Open

fix(web-components): support middle-click link navigation#36579
Bhat Muneeb (bhatmuneeb1) wants to merge 1 commit into
microsoft:masterfrom
bhatmuneeb1:fix-web-components-middle-click

Conversation

@bhatmuneeb1

Copy link
Copy Markdown

Previous Behavior

fluent-link and fluent-anchor-button handle primary clicks and Ctrl/Meta-clicks, but middle-clicking does not open the target in a new tab because the custom elements do not handle the auxclick event.

New Behavior

Handle middle-button auxclick events in the shared BaseAnchor and route them through the existing new-tab navigation path.

Both fluent-link and fluent-anchor-button templates now bind auxclick, and Playwright regression coverage verifies that middle-click opens the configured href in a new page without navigating the current page.

A patch change file is included for @fluentui/web-components.

Related Issue(s)

Fixes #36567

@bhatmuneeb1
Bhat Muneeb (bhatmuneeb1) requested a review from a team as a code owner August 14, 2026 12:32
@bhatmuneeb1

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

[Bug]: Cannot open links in new tab

1 participant