Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Does not erase the country code on mobile devices

Open GamerX-Ar opened this issue 4 years ago • 1 comments

  • Describe the bug: On mobile devices, deleting characters in the field does not erase the country code (see animation) and blocks typing. I use Inputmask with a phone extension, but the pure Inputmask has a similar bug – after manually type the country code. It looks like an incorrect caret position calculation. However, on desktop devices, everything is fine.
  • https://jsfiddle.net/Shark941/z5jw2y3g/4/ (only Inputmask) and https://jsfiddle.net/Shark941/2b5kx7zs/12/ (Inputmask+phone extention)
  • OS: Android, iOS
  • Browser: Chrome, Safari, FireFox
  • Inputmask version: 5.0.3 (pure and jquery)

Inputmask+phone extention ezgif-3-00724e0a28fd

Inputmask ezgif-3-93869692a0bf

GamerX-Ar avatar Jun 21 '20 14:06 GamerX-Ar

Hi @GamerX-Ar ,

I can reproduce the issue. I will see how to fix it.

RobinHerbots avatar Jun 22 '20 08:06 RobinHerbots