-
Notifications
You must be signed in to change notification settings - Fork 120
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
any possibility to enter negative (-) mark in the input #97
Comments
Hi @slcoder, At the moment we have the I believe we could define that as a feature to be built. (as a config property) What do you think? This is the actual method: changeToNegative(): void {
if (this.options.allowNegative && this.rawValue != "" &&
this.rawValue.charAt(0) != "-" && this.value != 0) {
// Apply the mask to ensure the min and max values are enforced.
this.rawValue = this.applyMask(false, "-" + this.rawValue);
}
} |
Hi @nbfontana Thank you for a prompt response. Yes, I think your first approach would be handy., Are the changes releasing soon? --my html----
now users able to add minus value into the textbox - this is great my actual issue is: the user does not allow to enter minus mark at the start of the textbox and enter the value, it only allows enter some value and enter a minus mark, that's is kind of odd practice I believe. Really appreciate your help on this. Thanks |
I've tried this function and it seems works
|
Any news regarding integration of this fix? In Germany it's typical to type the minus sign at first - so it would be of great help to have this fix or a bybass. Besides this I'm very happy with ngx-currency because it works perfect for me. |
Any update on this, as I also have different geo graphical users requiring the need to enter "-" first before the numeric value? |
Any fix to this in the near future? |
1 similar comment
Any fix to this in the near future? |
¿Alguna solución encontrada?, tengo el mismo problema |
where to put this function, please? |
hello! any updates on this? |
bump |
Hi! Any updates? I also need that. |
Partially solved by #99 and added to a new Will prob generate side-effects. It works like a charm with the default |
Hi
First of all, thank you very much for this module, it really helped for me.
I'm having an issue of users always attempting to enter (-) mark when they want to add negative value to input, unfortunately, now users have to add numbers and enter (-) mark towards the end, which is not practical.
Any suggestion or help to sort this out?
Thanks
The text was updated successfully, but these errors were encountered: