changhuixu / ngx-digit-only

An Angular directive to only allow [0-9] in the input box when typing, pasting or drag/dropping.
https://changhuixu.github.io/ngx-digit-only/
MIT License
161 stars 70 forks source link

Negative value #34

Closed christophe-mailfert closed 3 years ago

christophe-mailfert commented 4 years ago

Hey there,

Nice job on this directive, but how can we manage negative input ? We have @Input() min set to -Infinity but we cannot set '-' char ?

Any solution ?

Thx for advance.