#13880·MudBlazor

MudFormComponent.Culture: Implementation deviates from documentation

Author: ShuraBlackCreated Sep 16, 2026Updated Sep 16, 2026
Labelsbug

Before reporting

  • I searched existing issues
  • I tried in private/incognito browser

What went wrong?

Documentation and implementation are out of sync

The documentation states that the default value is CultureInfo.InvariantCulture:

Defaults to CultureInfo.InvariantCulture.

However, the current implementation initializes the property with CultureInfo.CurrentUICulture:

https://github.com/MudBlazor/MudBlazor/blob/92709d06e510173e52aaaf2c35d24d869c0f7848/src/MudBlazor/Base/MudFormComponent.cs#L175-L183

I believe the implementation should be changed rather than the documentation.

Using InvariantCulture as the default provides deterministic and culture-independent parsing/formatting behavior, which is especially important for form components. It also aligns with the documented API contract and avoids unexpected behavior changes based on the user's UI culture.

Suggested change:

csharp
public CultureInfo Culture { get; set; } = CultureInfo.InvariantCulture;

Unless there was an intentional design change, this looks like a regression or an oversight that causes the implementation to diverge from the documented behavior.

Reproduction link

https://github.com/MudBlazor/MudBlazor/blob/dev/src/MudBlazor/Base/MudFormComponent.cs

Reproduction steps

Not a runtime issue

Version (bug)

v9.10.0

Version (working)

No response

Environment

No response

Blazor rendering mode

No response