Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Input mask duplicates character on Android

Open alvaroenrich opened this issue 3 years ago • 0 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report 
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

In an android using Google Board and Chrome (96) with a mask using ('aa99 9999') as mask, it will duplicate the 5th character introduced by the user if the placeholder is set to '' or ' '.

Expected behavior

It should not duplicate the 5th character.

Minimal reproduction of the problem with instructions

When using chrome on android, if using 'aa99 9999 9999 9999 9999 99' as a Mask, with placeholder (' '), when introducing the 5th character, it auto duplicates it. Only being able to reproduce with android devices using Google Board. i.e: Won't happen with SwiftKey Keyboard

https://stackblitz.com/edit/angular-ivy-qzy73n?file=src%2Fapp%2Fapp.component.html Open the link from the device matching the browser and keyboard and reproduce.

Environment


Angular version: Reproduced in both Angular 12 and Angular 11

Browser:
- [ ] Chrome (desktop) version XX
- [X] Chrome (Android) version 96 (Android 11)
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 

Inputmask version

5.0.6

alvaroenrich avatar Dec 15 '21 16:12 alvaroenrich