Skip to content

fix: .NET 11 exception for dateselected custom event #4603

Closed

Description

@jjonescz

🐛 Bug Report

When using this library on .NET 11, I'm getting an exception in the browser Dev Console:

"The custom event 'dateselected' cannot have the same name as its browserEventName 'dateselected'. Choose a different name for the custom event."

💻 Repro or Code Sample

You can see it on for example https://lab.razor.fyi/, but I assume any FluentUI blazor app on .NET 11 Preview 1 would hit it.

🤔 Expected Behavior

Doesn't crash.

😯 Current Behavior

There is an unhandled exception "The custom event 'dateselected' cannot have the same name as its browserEventName 'dateselected'. Choose a different name for the custom event."

💁 Possible Solution

Change the custom event name to be different from browser event name.

🔦 Context

🌍 Your Environment

  • OS & Device: Windows PC
  • Browser Microsoft Edge
  • .NET and Fluent UI Blazor library Version 4.14.0

Activity

  1. added
    triage
    on Mar 7, 2026
  2. added
    bug
    status:needs-investigation
    and removed
    triage
    on Mar 7, 2026
  3. jjonescz commented on Mar 7, 2026

    @jjonescz
    MemberAuthor

    Btw, dateselected is probably not the only event that has the same name and browserEventName, it's just the first one that crashes.

  4. vnbaaij commented on Mar 8, 2026

    @vnbaaij
    Collaborator

    Noted! See #4609 for the v4 changes and #4607 for v5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstatus:needs-investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions