assisrafael/angular-input-masks

Pasting negative numbers, or negative ngmodel...

Open

#102 aberto em 24 de jul. de 2015

Ver no GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (334 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (970 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador