-
Notifications
You must be signed in to change notification settings - Fork 386
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: NumberFields do not support doubles, decimals, floats #1175
Comments
Hi, Closing this as it is a duplicate. Please see #1127 (comment) |
@vnbaaij Just to clarify then, we cannot use the NumberField for decimal values whatsoever? I tried setting the step to 0.01 for example and still get the issue (though this would have still been suboptimal, as stepping using the spinner would have been preferable by a different value). All the same though, I am unable in any way, to have the number say "1.2" represented in a NumberField component? |
I'll take another look at what is happening when it is used in a Form. But please look at the article I linked to in the other issue. The NumberField is most of the times not a good solution. |
Hi @vnbaaij, I also have troubles with the number field and now read your comments, the linked issue and the link provided there.
From my perspective,
What do you think about that? |
Yes, we get notified on responses on closed issues (and read them!). I'll take some time to think about how we can best approach this problem during the coming (hopefuly quieter) weeks.
|
I'm having the same issue with a Trying to piece together the issues/discussions already open regarding this behavior (#733, this one #1175, and microsoft/fast#6617)... so this validation bug is coming from the Is there an alternative component/workaround that can be used in an |
@thebarrettlo I'm in contact with the FAST team again to see what we can do. |
Have you got anywhere with this after contacting the FAST team? |
No, is still open |
Is there an issue you can share on the FAST Issue board that's in relation to this? |
Overarching issue is this one: microsoft/fast#6881 |
Running into this issue, too 💥 |
Any progress? |
No. And there won't be any till things change in the web component. |
🐛 Bug Report
When inserting a value into a numberfield where the bound value is a double, float or decimal, will not allow the user to enter a value with a decimal. It will instead ask you to enter one the the 2 nearest integers.
💻 Repro or Code Sample
🤔 Expected Behavior
Allows user to submit the form with a value with decimals
😯 Current Behavior
When submitting the form, we get this preventing form submission.
💁 Possible Solution
🔦 Context
I have produced a minimal repro (above) in the base template after having found the issue in my main project in order to isolate it.
🌍 Your Environment
Windows, Chrome, .net 8, 4.2.1 FluentUI
The text was updated successfully, but these errors were encountered: