Skip to content

MudSelectExtended causes InvalidCharacterError on .NET 10 #585

@james-nahvac

Description

@james-nahvac

MudSelectExtended causes InvalidCharacterError on .NET 10 in a brand new project.

Steps to reproduce:

  1. Create new project targeting net10.0 using "Blazor WebAssembly Standalone App" template
  2. Install MudBlazor and MudBlazor.Extensions (I used MudBlazor 9.0.0-preview2 and Extensions 9.0.0-preview3)
  3. Follow instructions to add css, script tags, services to Program.cs, using directives in _Imports, etc.
  4. Create new page:
@page "/Test"

<MudSelectExtended T="string" Label="Data Based" ItemCollection="_collection"  />

@code {
    private string[] _collection = new string[] { "Foo", "Bar", "Fizz", "Buzz" };
}

Loading page immediately causes:

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: InvalidCharacterError: String contains an invalid character
InvalidCharacterError: String contains an invalid character

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions