Skip to content

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

@jjonescz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions