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.
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.