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

Fix/firefoxpaste #20

Closed changhuixu closed 4 years ago

changhuixu commented 4 years ago

As suggested by @gabrielhof in issue #16 use setRangeText to insert text