Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Firefox and type=number
Message
 
 
À
Tous
Information générale
Forum:
HTML5
Catégorie:
Problèmes de navigateur
Titre:
Firefox and type=number
Divers
Thread ID:
01664072
Message ID:
01664072
Vues:
46
Hi everybody,

We're using the following markup for numeric control:
<input type="number" name="misc"
                           id="misc"
                           ng-disabled="crud.model.status==='C'"
                           ng-model="crud.model.miscChrg"
                           class="form-control"
                           min="0"
                           step="0.01"
                           data-sm:number-format data-accuracy="2" data-sm:number
                           placeholder="0.00" />
The smNumber directive works fine in Google Chrome and the number displays with 2 decimal points even when it's a whole number, such as 0. In FireFox it displays using spinner and if it's a whole number, I don't see .00 displayed.

Is there a way to make FireFox display the number the way we want with two decimals?

Thanks in advance.

UPDATE. Apparently it's a bug in FireFox still not fixed

https://bugzilla.mozilla.org/show_bug.cgi?id=1003896

I guess we would have to leave with it.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform