Skip to content

Conversation

dariatiurina
Copy link
Contributor

Add an InputHidden component for Blazor

Description

Implemented and added a new component InputHidden, which allows developers to handle hidden input fields in forms. It includes the implementation of the component, updates to the public API, unit tests, end-to-end tests.

Changes:

  • Added the InputHidden class in src/Components/Web/src/Forms/InputHidden.cs, which extends InputBase<string?> to provide a hidden input field for storing string values.
  • Updated src/Components/Web/src/PublicAPI.Unshipped.txt to include the new InputHidden component and its associated methods and properties.
  • Added InputHiddenTest unit test in src/Components/Web/test/Forms/InputHiddenTest.cs .
  • Added InputHiddenCanStoreData test in FormWithParentBindingContextTest.cs to validate that the InputHidden component can store and bind data.

Fixes #55720

@dariatiurina dariatiurina requested a review from a team as a code owner July 9, 2025 10:44
@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label Jul 9, 2025
Copy link
Member

@ilonatommy ilonatommy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@dariatiurina dariatiurina merged commit ea282bf into dotnet:main Jul 10, 2025
28 checks passed
@dariatiurina dariatiurina deleted the 55720-add-input-hidden branch July 18, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an InputHidden component for Blazor
3 participants