Skip to content

[dotnet-sdk-11.0.100-preview.3.26174.105] The radzen blazor menu cannot expand with error: Uncaught TypeError: t.DispatchMouseEvent is not a function. #66110

@Junjun-zhao

Description

@Junjun-zhao

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After we retarget radzen blazor to .net11.0 and build with dotnet-sdk-11.0.100-preview.3.26174.105, we run the app and click to expand the menu, but the menu cannot expand and show error: Uncaught TypeError: t.DispatchMouseEvent is not a function.

Application Name: radzen-blazor
OS: Windows 11 25H2
CPU: X64
.NET Build Number: dotnet-sdk-11.0.100-preview.3.26174.105

GitHub Link: https://github.com/radzenhq/radzen-blazor

Or checking App Source from: (https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2880585)

Verify Scenarios:
1). Windows 11 25H2 AMD64 + dotnet-sdk-11.0.100-preview.3.26172.108: Pass
2). Windows 11 25H2 AMD64 + dotnet-sdk-11.0.100-preview.3.26174.105: Fail
3). Windows 11 25H2 AMD64 + dotnet-sdk-11.0.100-preview.3.26179.102: Fail

Expected Behavior

The menu can be expanded.

Steps To Reproduce

  1. Retarget the project to net11.0. (Replace net10 with net11 in the entire solution.)
    <TargetFrameworks>net11.0</TargetFrameworks>

  2. Add PackageReference in Radzen.Blazor.csproj.

<PackageReference Include="Microsoft.AspNetCore.Components.Web" Condition="'$(TargetFramework)' == 'net11.0'" Version="11.*-*" />
  1. Build the project RadzenBlazorDemos.Host with dotnet-sdk-11.0.100-preview.3.26174.105. (Add global.json: {"sdk": {"version": "11.0.100-preview.3.26174.105"}})
  2. Lanuch RadzenBlazorDemos.Host.exe.
  3. Go to http://localhost:5000/get-started.
  4. Expand the “DataGrid” item.

Exceptions (if any)

The menu cannot expand with error in console:

blazor.web.js:1 Uncaught TypeError: t.DispatchMouseEvent is not a function
    at blazor.web.js:1:16005
    at blazor.web.js:1:18987
    at M (blazor.web.js:1:19374)
    at blazor.web.js:1:19424
    at Object.invokeWhenHeapUnlocked (blazor.web.js:1:186856)
    at blazor.web.js:1:191014
    at M (blazor.web.js:1:19414)
    at N (blazor.web.js:1:15485)
    at F.dispatchGlobalEventToAllElements (blazor.web.js:1:22166)
    at F.onGlobalEvent (blazor.web.js:1:21569)

.NET Version

11.0.100-preview.3.26174.105

Anything else?

dotnet --info

.NET SDK:
 Version:           11.0.100-preview.3.26174.105
 Commit:            499c5b40b9
 Workload version:  11.0.100-manifests.8fe6e2b8
 MSBuild version:   18.6.0-preview-26174-105+499c5b40b

Runtime environment:
 OS Name:     Windows
 OS Version:  10.0.26200
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\11.0.100-preview.3.26174.105\

Host:
  Version:      11.0.0-preview.3.26174.105
  Architecture: x64
  Commit:       499c5b40b9

.NET SDKs installed:
  11.0.100-preview.3.26174.105 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 11.0.0-preview.3.26174.105 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 11.0.0-preview.3.26174.105 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 11.0.0-preview.3.26174.105 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

@dotnet-actwx-bot @dotnet/compat

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions