Skip to content

InputText with a property that has a MaxLength data annotation should generate a maxlength attribute #48246

@csharpfritz

Description

@csharpfritz

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I am using the InputText element in Blazor and would like it to limit the number of characters allowed to be keyed in based off of the MaxLength data annotation

Describe the solution you'd like

Generate a maxlength attribute on the resulting HTML input element that contains the value of the MaxLength data annotation

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-component-modelAny feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions