assisrafael/angular-input-masks

Pasting negative numbers, or negative ngmodel...

Open

#102 建立於 2015年7月24日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)JavaScript (334 fork)batch import
bughelp wanted

倉庫指標

Star
 (970 star)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南