insin / inputmask-core

Standalone input mask implementation, independent of any GUI
MIT License
304 stars 52 forks source link

Cannot paste in a phone number mask #41

Open svilenb opened 6 years ago

svilenb commented 6 years ago

My mask has the following pattern "(111) 111-1111", which means that I should be able to paste the following phone (123) 456-7890. From what I saw in the code this problem is happening because I have two static characters one after another (that closing round bracket and the space that is following it). Of course, if I remove the space from the pattern the paste suddenly starts working but then I have a pattern that is not in the desired format.

juicylevel commented 6 years ago

when do you fix it?