dotnet / dotnet/aspnetcore

RegisterCustomElement stopped working in Blazor 8

Open
#53,920 10 comments 5 reactions 0 assignees View on GitHub
area-blazor bug feature-blazor-custom-elements
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Describe the bug

I upgraded the solution as found in https://github.com/khalidabuhakmeh/BlazorCustomElementsSample to .NET 8. Now the customelement no longer loads. If I use the old blazor.webassembly.js the customelement loads.

### Expected Behavior

I expect that the customelement is loaded.
see branch feature/net8 in repo https://github.com/rudibelt/BlazorCustomElementsSample

### Steps To Reproduce

run the code in featre/net8. customelement is no longer loaded

### Exceptions (if any)

_No response_

### .NET Version

8.0.100

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.