assisrafael/angular-input-masks

Pasting negative numbers, or negative ngmodel...

Ouverte

#102 ouverte le 24 juil. 2015

 (6 commentaires) (0 réaction) (0 personne assignée)JavaScript (330 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (955 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Hello ppl, the ng-negative-number work only if you input the '-' char... but if you paste a negative number or change the ng-model to a negative value, it won´t work...

I am issuing this, because i need to change a money mask positive or negative acording to the dynamic calc of several fields... And thus can give me a ng-model positive or negative... but the field only gets the int and ignores the '-' from the model.

Guide contributeur