Skip to content

MudBooleanInput: Use ParameterState for Value#12273

Merged
ScarletKuro merged 2 commits intoMudBlazor:devfrom
ScarletKuro:bool_parameterstate
Dec 14, 2025
Merged

MudBooleanInput: Use ParameterState for Value#12273
ScarletKuro merged 2 commits intoMudBlazor:devfrom
ScarletKuro:bool_parameterstate

Conversation

@ScarletKuro
Copy link
Member

Checklist:

  • I've read the contribution guidelines
  • My code follows the style of this project
  • I've added or updated relevant unit tests

</MudForm>
}
</MudForm>
<MudText HtmlTag="span"><MudSwitch @bind-Value="@_showChildForm" Color="Color.Primary" /> Display child form</MudText>
Copy link
Member Author

@ScarletKuro ScarletKuro Dec 14, 2025

Choose a reason for hiding this comment

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

I just had to move this. This isn't the purpose of the test anyway.
When form resets the switch goes from true to false, the child form is destroyed from the DOM and doesn't survive when IsTouchedChanged fires.
The problem that because of the direct parameter state, the DOM was staled,

@ScarletKuro ScarletKuro merged commit e501bfe into MudBlazor:dev Dec 14, 2025
7 checks passed
@ScarletKuro ScarletKuro deleted the bool_parameterstate branch December 14, 2025 19:01
@ScarletKuro ScarletKuro added breaking change This change will require consumer code updates API change Modifies the public API surface refactor Reorganizes code and has no changes to the API or functionality in the main library labels Dec 14, 2025
This was referenced Feb 20, 2026
This was referenced Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API change Modifies the public API surface breaking change This change will require consumer code updates refactor Reorganizes code and has no changes to the API or functionality in the main library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant