thelebdev / ng2-currency-mask

A very simple currency mask directive that allows using a number attribute with the ngModel.
MIT License
0 stars 3 forks source link

IME event doesn't get handled correctly #14

Open guillep2k opened 5 years ago

guillep2k commented 5 years ago

There's an issue in the original project about this problem, and there are instructions to deal with it. They could be implemented in this fork.

Migrated from original project (https://github.com/cesarrew/ng2-currency-mask/issues/111)

Orignal request by @sunyanan891114

When I use IME to put Chinese in the input, it can be set directly without any filter. Also the text can't be deleted by press backspace.

We dig into the code and found it's because the IME events can't be caught by keypress handler and the input handler only work for chrome android. We raised a PR(https://github.com/cesarrew/ng2-currency-mask/pull/110) to fix this.