Open
Description
This should work
<input @bind="@price"/>
@code
{
decimal price;
}
but currently we get an exception:
Error: System.ArgumentException: 'bind' does not accept values of type System.Decimal. To read and write this value type, wrap it in a property of type string with suitable getters and setters.
Decimal data type is paramount in every business application. We don't want to use "hacks" and convert it to/from string manually every time.
Support for formatting is also crucial (number of decimal places, decimal and thousandth separators)
Metadata
Assignees
Labels
Work that is important, but not critical for the releaseThis issue impacts approximately half of our customersIncludes: Blazor, Razor ComponentsThis issue represents an ask for new feature or an enhancement to an existing oneAny feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)Indicates that the issues may be a good fit for community to help with. Requires work from eng. teamThis label is used by an internal tool