Skip to content

MudBaseInput: Remove TextUpdateSuppression#12306

Merged
ScarletKuro merged 3 commits intoMudBlazor:devfrom
ScarletKuro:textsuppresion
Dec 19, 2025
Merged

MudBaseInput: Remove TextUpdateSuppression#12306
ScarletKuro merged 3 commits intoMudBlazor:devfrom
ScarletKuro:textsuppresion

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

…eFormat

- Removed TextUpdateSuppression parameter from MudBaseInput
- Removed all conditional logic that checked TextUpdateSuppression
- Text now always updates when Value changes (no suppression)
- Updated all component templates to remove TextUpdateSuppression attribute
- Updated tests to reflect new behavior (text always updates)
- Removed documentation about TextUpdateSuppression
- NumericFieldTestCultureFormat now passes on .NET 10!
- SelectTest1 still failing (investigating)

Co-authored-by: ScarletKuro <[email protected]>
@mudbot mudbot bot added 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 labels Dec 19, 2025
@ScarletKuro ScarletKuro requested a review from Copilot December 19, 2025 08:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the TextUpdateSuppression feature from MudBaseInput and all derived components, simplifying the internal text update logic to always update the text when values change, regardless of focus state or runtime location (Blazor Server vs WASM).

Key Changes:

  • Removed the TextUpdateSuppression parameter from MudBaseInput and all component usages
  • Simplified text update logic in MudBaseInput and MudInput by removing conditional checks for focus state and runtime location
  • Updated tests to reflect the new always-update behavior

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/MudBlazor/Base/MudBaseInput.cs Removed TextUpdateSuppression parameter definition and simplified text update logic in SetParametersAsync and OnValueParameterChangedAsync
src/MudBlazor/Components/Input/MudInput.razor.cs Simplified SetParametersAsync to always update _internalText without conditional logic
src/MudBlazor/Components/TextField/MudTextField.razor Removed TextUpdateSuppression parameter from two MudInput component usages
src/MudBlazor/Components/Select/MudSelect.razor Removed TextUpdateSuppression="false" from MudInput usage
src/MudBlazor/Components/Picker/MudPicker.razor Removed TextUpdateSuppression with dynamic value from MudInputControl usage
src/MudBlazor/Components/NumericField/MudNumericField.razor Removed TextUpdateSuppression parameter from MudInput usage
src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor Removed TextUpdateSuppression parameter from MudInput usage
src/MudBlazor/Components/Mask/MudMask.razor.cs Removed TextUpdateSuppression = false assignment from constructor
src/MudBlazor.UnitTests/Components/TextFieldTests.cs Updated test to verify new always-update behavior instead of suppression logic
src/MudBlazor.UnitTests/Components/AutocompleteTests.cs Removed TextUpdateSuppression parameter setting and updated comment
src/MudBlazor.Docs/Pages/Components/TextField/TextFieldPage.razor Removed documentation alert about TextUpdateSuppression parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ScarletKuro ScarletKuro merged commit 0f21557 into MudBlazor:dev Dec 19, 2025
6 checks passed
@ScarletKuro ScarletKuro deleted the textsuppresion branch December 19, 2025 08:43
@ScarletKuro ScarletKuro mentioned this pull request Feb 11, 2026
9 tasks
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

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.

3 participants