Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

Number type inputs do not show value's decimal spaces if they are zeros

  • 2 réponses
  • 1 a ce problème
  • 9 vues
  • Dernière réponse par futoricky

more options

I am only having this issue on firefox, it works as expected on chrome.

If I have a number input with a value of "20.00" or 20.00 (as a string or number) it always shows 20 without the decimal spaces inside the input box.

I need the type="number" so avoid other inputs that aren't numbers because of internal calculations that are done after the input.

For example:

https://jsfiddle.net/fys1c1am/

How can I have the value inside the input show with the 2 decimal values?

As far as I have read around the web, there is no solution to this issue and it is probably an issue to be solved internally by the mozilla firefox dev team.

I am only having this issue on firefox, it works as expected on chrome. If I have a number input with a value of "20.00" or 20.00 (as a string or number) it always shows 20 without the decimal spaces inside the input box. I need the type="number" so avoid other inputs that aren't numbers because of internal calculations that are done after the input. For example: https://jsfiddle.net/fys1c1am/ How can I have the value inside the input show with the 2 decimal values? As far as I have read around the web, there is no solution to this issue and it is probably an issue to be solved internally by the mozilla firefox dev team.

Toutes les réponses (2)

more options
more options

TyDraniu said

Try to ask them here => https://bugzilla.mozilla.org/show_bug.cgi?id=1003896

Looks like this has been an issue for 4years. I guess mozilla doesn't care about it...