Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting negative numbers, or negative ngmodel... #102

Open
tiagoadp opened this issue Jul 24, 2015 · 6 comments
Open

Pasting negative numbers, or negative ngmodel... #102

tiagoadp opened this issue Jul 24, 2015 · 6 comments

Comments

@tiagoadp
Copy link

tiagoadp commented Jul 24, 2015

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.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24891651-pasting-negative-numbers-or-negative-ngmodel?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).
@kjavia
Copy link

kjavia commented Nov 17, 2015

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.

@simonaberry
Copy link

+1 for allowing user to enter negative sign first

@jlnery-zz
Copy link

+2 for allowing user to enter negative sign first

@jlnery-zz
Copy link

@kjavia I fixed that behavior! I'll do a PR.

@kjavia
Copy link

kjavia commented Feb 7, 2016

@jlNery thanks. +1

@lucasjorge944
Copy link

the fix was merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants