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

Allowing any character after press dead key #28

Closed douglasangeli closed 3 years ago

douglasangeli commented 4 years ago

Hello, congratulations and thank you for the good work so far. 😉

I found a small bug when typing in a very specific scenario and I would like to share it with you.

The problem:

When I press any Dead Key like '~', '^' or '´' and then press any other key this value is allowed

Browser:

Chrome 80.0.3987.163

Image:

image

changhuixu commented 4 years ago

Hi @douglasangeli , thanks for pointing out this issue, and I have learned something new. However, I am not sure how to pull out a keyboard to type a dead key, thus hard to investigate...

I will keep this issue open. I hope some user would create a pull request to resolve this issue.