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

ng2(x)-currency-mask doesn't work on android web view. #11

Open guillep2k opened 5 years ago

guillep2k commented 5 years ago

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

Orignal request by @wangshu3000

We used currency mask, but it doesn't work well on android Oreo web view. User can input any characters, but it can not be formatted, looks like the event (like keyPress) couldn't be triggered on web view. On web view, onInput event would work. We have enabled JS for webview.

We found a solution to fix it form android side. But we should also be able to fix it from ngx-mask side. https://stackoverflow.com/questions/45312553/android-webview-html-input-keypress-doesnt-fire It works well on all other platform, ios, ff, chrome, safari, IE, or chrome on android. Only not work on android WEB VIEW.