Open rogerpec opened 6 years ago
Facing the same behavior
With mask like
$("[js-cta-phone]").mask("000 000-00-00");
when key pressed on the position of space or character "-" cursor jumps to the beginning (4th keyup). So 5th key will add user input at very beginning
I am also having this problem and I find no solution. It's been 1 year since this post was made, did you guys achieve something satisfactory?
No solution yet. The only option is not to use contenteditable (just regular input) for now
Also relevant issue
Hey there! Planning on reopening issues? Ready to test if it still occurring unexpected behavior...
Hello.
Thank you Igor Escobar and contributors by this very usefull plugin.
I'm trying to use the plugin in some contenteditable elements such as divs and spans. But the behavior is being odd. When the typing reachs a symbol, the caret goes to start of element, even with no reverse option.
Here is a fiddle to check: https://jsfiddle.net/k6bc7v1z/9/
When typed 12-34 (typing the -), the result is 12-34, ok. When typed 1234, the result is 41-23
What I´m doing wrong? I read the issues and docs, but can't found solution.
Thanks in advance