RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.4k stars 2.17k forks source link

Weird behavior after .clone(true) #2007

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi, I'm trying to combine plugin with dynamically added inputs. I'm using .clone(true), because otherwise my focus animation of the input is not working. However this practice seems to break whole behavior of appended input. When I use .clone(false) I can set inputmask again and it's working, but I need to .clone with true because of the reason above. Is here such an option to reset inputmask after cloning with true? Thanks a lot

RobinHerbots commented 6 years ago

@kubkox3,

I will see what I can do. Can you provide a simple codepen with the example.

RobinHerbots commented 6 years ago

@kubkox3 ,

I did some test and in both cases I can reapply the inputmask. With clone(true) the mask is auto applied.

steeply commented 6 years ago

same problem. When using jq.clone breaks inputmask behavior