-
Notifications
You must be signed in to change notification settings - Fork 3
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
If your "locale" uses decimal comma like "123,45" instead of "123.45", NaN crashes the whole kitty #2
Comments
"kitty" = common pool of money (Deutsch: Gemeinschaftskasse. Onboard yachts: Bordkasse) |
Hi, thanks for reporting. So to understand better:
Is that correct? I will first try to make a better validation for the amount, right now it just relies on the |
Yes. Yesterday, we had the first real use case, and after adding an "incorrectly" formatted amount, the whole sheet crashed - unfixable, this is the most important thing. So I suggest to fix it two-fold:
|
Hi, thanks for your help. So I did a little fix just to avoid breaking the count all together if an invalid number is entered. I am now looking into validating at the time of the input. But I was still expecting the form to do some kind of validation. Could you tell me what device/browser you are using? |
It should now be fixed as of 9720945, which adds a much better form validation. Depending on the browser / locale, using Thanks for your valuable feedback! |
I only use Firefox, and unfortunately, the detection appears not to work. I mena, when I enter "1,23" the box shows a small red border and I have to retype as "1.23" to get that in. https://freecount.s10a.dev/?box=50470e168b046fdcf6a0b5bc71ef1bf8 |
I see, I my Desktop Firefox also considers "1,23" as invalid. But the mobile versions seems to handle it, which is the main target. I could do something fancy about it in the future (pointing that it is a decimal symbol issue, or even substituting on the fly) but for now I want to just rely on what is a valid/invalid input from the browser's point of view, without making assumption about the user intent. |
It should work on both Firefoxes in the same way. |
No description provided.
The text was updated successfully, but these errors were encountered: