assisrafael/angular-input-masks

Pasting negative numbers, or negative ngmodel...

Open

#102 aperta il 24 lug 2015

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)JavaScript (334 fork)batch import
bughelp wanted

Metriche repository

Star
 (970 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor