Skip to content

Blazor Inputs can't bind to variables that start with ÅÄÖ when upgrading to .net 8 #53891

Closed
@poserdonut

Description

@poserdonut

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

We upgrade one of our blazor wasm sites to .net 8. After that we get a issue with our inputs binding to variables that start with the letter Å Ä or Ö.

E.g. this doesn't work
<div class="col-md-4"><InputText class="form-control" @bind-Value="@ÖvrigAnställning.Ort" /></div>

This works (yes, you can have ä in the variable name, but not as a starting letter).
<div class="col-md-4"><InputText class="form-control" @bind-Value="@OvrigAnställning.Ort" /></div>

We get this error in the console:
image

Expected Behavior

No response

Steps To Reproduce

Here's a minimal repro of the issue
https://github.com/poserdonut/BlazorInputBug

Exceptions (if any)

No response

.NET Version

8.0.101

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions