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

Mask does not working when copy and paste holding the CTRL key

Open edilsonmendes opened this issue 7 years ago • 4 comments

Masked fields allow any content copied and pasted, with right mouse button and holding CTRL key, without applying mask and removing invalid characters.

Steps to Reproduce:

1-Copy any content 2-Click with right mouse button in masked field, while hold CTRL key, and select "Paste" option.

Result: See that whole copied content was pasted in the field, even invalid chars.

Tested in latest version of Chrome using this exemple: http://jsfiddle.net/igorescobar/6pco4om7/

edilsonmendes avatar Apr 05 '18 20:04 edilsonmendes

@edilsonmendes Is this a real scenario or you are just trying to break things? ^^

igorescobar avatar Apr 18 '18 09:04 igorescobar

@igorescobar , it was a scenario discovered by our test team. There are some copy/paste tests in the input fields. We use this wonderful lib in many applications. Congratulations on your great work.

edilsonmendes avatar Apr 18 '18 16:04 edilsonmendes

Hi @igorescobar , We are also facing this issue while using mask plugin. Is there any workaround available to get rid of this issue?

richardavinash12 avatar Jun 28 '19 05:06 richardavinash12

Speaking of 2020 this is an unfixed issue yet. The copy/paste -- with or without holding Ctrl key -- is a real world scenario indeed and should be fixed. I mean for the sake of this great lib.

ed1nh0 avatar Feb 26 '20 03:02 ed1nh0