FormatStrings not working with @bind-value:format for <InputNumber> in Blazor WebAssembly #30567
Labels
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-blazor-component-model
Any feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)
feature-rendering
Features dealing with how blazor renders components
Milestone
Describe the bug
Display Formatting doesn't work with
decimal
types in Blazor WebAssembly.To Reproduce
Notice the output as shown below:
![image](https://user-images.githubusercontent.com/43729469/109660144-8745c080-7b8e-11eb-9999-72e47d06480d.png)
@bind-value:format
doesn't seem to work. I have also tried with[DisplayFormat(DataFormatString = "{0:#.##}", ApplyFormatInEditMode = true)]
Data Annotation. This also doesn't work.Later from the docs I noticed that
Is there any plans on including this in preview release? Please can you share an update on this? Or is there any best workaround for this at the moment?
Further technical details
ASP.NET Core version - 5.0.3
Include the output of
![image](https://user-images.githubusercontent.com/43729469/109666800-8a907a80-7b95-11eb-9ed7-54fc5fd0b734.png)
dotnet --info
The IDE - VS 2019 16.8.6
The text was updated successfully, but these errors were encountered: