-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Fix virtualization culture invariance #26432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix virtualization culture invariance #26432
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops
Hello human! Please make sure you've included the Shiproom Template in a comment or (preferably) the PR description. Also, make sure this PR is not marked as a draft and is ready-to-merge. |
I can work on getting this thru tactics. |
We need to get culture analyzers turned on - #24567 |
@dotnet/aspnet-build could you merge this? |
Fixes #26424
Description
Blazor's virtualization uses culture-specific formatting (
ToString()
) when emitting values for css heights. In cultures that use decimal separators for their heights, the generated height is not a valid css value. This change updates the heights to use invariant formatting.Customer impact
The Virtualize component does not function when executing in non-English locales. This affects both Blazor Server with request localization and Blazor WebAssembly.
Regression
No. The feature is new to .NET 5 RC1.
Risk
The change is isolated to the Virtualize component and was tested manually.