Skip to content

Blazor Components (like InputSelect, InputText) are rendered to HTML without scope identifier #27024

@KarloX2

Description

@KarloX2

Working with .NET 5.0 RC2 I have the problem that components like InputText are rendered to HTML (from razor) without a scope identifier attribute. Not sure if scope identifier is the correct term, what I mean is this:

A plain <input type="text" ...> in razor is rendered into e.g.: <input class="form-control" type="text" b-p5ext164c4>

whereas a <InputText> is rendered into the same HTML element but without the b-p5ext164c4 attribute.

This means that I cannot easily address the <InputText> with scoped CSS in my page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions