Skip to content

[Bug]: fluent-anchor-button is not triggering OnBeforeInternalNavigation in blazor #36193

@MarvinKlein1508

Description

@MarvinKlein1508

Component

Other...

Package version

3.0.0-rc18

@microsoft/fast-element version

2.0.0

Environment

System:
    OS: Windows 11 10.0.26200
    CPU: (28) x64 Intel(R) Core(TM) i7-14700K
    Memory: 3.01 GB / 31.78 GB
  Browsers:
    Edge: Chromium (148.0.3967.54)
    Firefox: 150.0.2 - C:\Program Files\Mozilla Firefox\firefox.exe
    Firefox Developer Edition: 151.0 - C:\Program Files\Firefox Developer Edition\firefox.exe

Current Behavior

In #36085 there was an update to the fluent-anchor-button from @davatron5000 which fixed the double execution from issue #36066

Since this patch the OnBeforeInternalNavigation event in Blazor will not be triggered anymore in Blazor. Before this patch this event was raised but executed twice.

Expected Behavior

The fluent-anchor-button should trigger this Blazor event just like native a anchors or built in NavLink components in Blazor.

Reproduction

https://github.com/MarvinKlein1508/wc-OnBeforeInternalNavigation-issue

Steps to reproduce

  1. Run the project
  2. Click the anchor button
  3. Check console and see no log
  4. Try the same for the other links
  5. See log entries

Are you reporting an Accessibility issue?

no

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions