[Blazor] InputNumber
does not support the type 'System.Int64'
#13215
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
Done
This issue has been fixed
Milestone
If you believe you have an issue that affects the security of the platform please do NOT create an issue and instead email your issue details to secure@microsoft.com. Your report may be eligible for our bug bounty but ONLY if it is reported through email.
Describe the bug
Firstly, a big thank you for all of the work that everyone has put into the Blazor framework.
The
InputNumber
component does not support binding to properties of thelong
data type.To Reproduce
System.InvalidOperationException: The type 'System.Int64' is not a supported numeric type.
Expected behavior
Based on this comment, the
InputNumber
component should support binding to thelong
type.Looking through the code, the issue appears to be caused by the checks in this if statement.
If this is the case, then I am happy to create a fork to add
targetType == typeof(long)
.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Include the output of
dotnet --info
The text was updated successfully, but these errors were encountered: