angular-input-masks
angular-input-masks copied to clipboard
Pasting negative numbers, or negative ngmodel...
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.
The built in behavior for entering negative values is not very natural. The user is forced to enter a number first before they press - to convert it to a negative number. Ideally it should allow the user -99999 in that order.
+1 for allowing user to enter negative sign first
+2 for allowing user to enter negative sign first
@kjavia I fixed that behavior! I'll do a PR.
@jlnery thanks. +1
the fix was merged?