microsoft / microsoft/fluentui-blazor

fix: cannot open FluentLink and FluentAnchorButton in new tab

Open
#5,140 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:fluent-ui-web-components bug v5
Dominant language
C#
Stars
4.8k
Forks
483
Avg merge
14h 41m
Merged PRs (30d)
68

Description

🐛 Bug Report

It is not possible to open FluentLink and FluentAnchorButton as a new tab when you use the middle mouse button.

💻 Repro or Code Sample

https://v5.fluentui-blazor.net/Buttons/AnchorButton
https://v5.fluentui-blazor.net/link

In v4 this works
https://www.fluentui-blazor.net/Anchor

🤔 Expected Behavior

The links should open in a new tab when the user clicks on them with the middle mouse button.

😯 Current Behavior

Nothing happens.

🔦 Context

This bug could have been introduced in #5081 but I'm not sure if this has even worked before this commit.

🌍 Your Environment

  • OS & Device: Windows 11 64 Bit
  • Browser latest Firefox, Chrome and Edge
  • latest dev-v5 branch

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the FluentLink and FluentAnchorButton implementations and compare their behavior with the v4 Anchor example. Reproduce the issue using the middle mouse button at the supplied v5 links in Firefox, Chrome, and Edge, then check the change from #5081. Done means both components open their links in a new tab as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.