assisrafael/angular-input-masks

Pasting negative numbers, or negative ngmodel...

オープン

#102 opened on 2015/07/24

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (330 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (956 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド