banco-alimentar / alimentestaideia.pt

Site doações alimente esta ideia
http://alimentestaideia.pt
Other
10 stars 0 forks source link

In Product Catalog, cannot enter "3.9" as a price #709

Open tiagonmas opened 1 year ago

tiagonmas commented 1 year ago

Describe the bug In Product Catalog, cannot enter "3.9" as a price

https://www.alimentestaideia.pt/Admin/ProductsCatalogues/Edit?id=26 image

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Update a price to 3.9
guerrerotook commented 1 year ago

I thinks this is not a bug but a confusion based on the culture info that you have. Can you try to edit that in your browser with comma instead of dot as the decimal separator. By default is formatted in English but I guess the local validation try to validate that in javascript using your locale in the browser.

tiagonmas commented 1 year ago

I did try with "," but it did not work ... it updates the field to 39 :( @guerrerotook (if I update to 3,9)

guerrerotook commented 1 year ago

Funny because from my side I can edit that without problem, but this is a JavaScript issue.