jQuery-Mask-Plugin icon indicating copy to clipboard operation
jQuery-Mask-Plugin copied to clipboard

Paste into a field with a dynamic size mask

Open esynaps opened this issue 7 years ago • 2 comments

To begin, thank you for this plugin.

Device

Desktop

Browser (and version)?

Chrome Version 67.0.3396.99 (Build officiel) (64 bits)

Functional jsfiddle exemplifying your problem:

http://jsfiddle.net/nbcqvdsz/

Describe de problem depth:

'A' is a mask of size 12 if the value of the input starts with 0 'B' is a mask of size 16 if the value of the input starts with 1 'W' is a mask accepting any value, with recursive = true

When writing in the field "012345678912" mask A applies.

The bug: If you paste a value respecting the mask B (size 16. Example: 123456789123/456789) by overwriting the mask A, only the first 12 characters are copied. You have to paste a second time to have all 16 characters of the clipboard.

Moreover the callback onInvalid is not called

esynaps avatar Jul 13 '18 07:07 esynaps

Please share if you found any solution for copy pasting using this plugin?

Faizan-Shakeel avatar May 13 '19 15:05 Faizan-Shakeel

I am also having the same problem, if someone found a solution, please share here too

GustavoTBett avatar May 03 '23 16:05 GustavoTBett