fix(VMaskInput): fix caret position while editing#21925
Conversation
46f49e7 to
fd3276f
Compare
d64338d to
89b3b6c
Compare
|
When cutting off (and pasting) fragments containing separator(s) there is a minor miss in cursor position (by 1). RecordingScreencast.from.2025-08-18.22-06-39.webmBTW. vue-mask-input (judging by a brief manual test) seems to be particuarly resilient to this kind of interaction and does not lose typed values when the potential result does not match the mask - as it does not shift them left. I am interested in your opinion about their implementation and the potential of VMaskInput to adopt this behavior (in the future). |
89b3b6c to
f991b3c
Compare
I 100% agree, it's worth the improvement. Will plan to adopt this soon. |
Made some improvements to the logic, please have a look. Thanks |
f991b3c to
bcc4566
Compare
|
There is a minor regression:
|
1d374ba to
2b9e26e
Compare
fixes #21776
Description
Fix caret position while editing mask value from middle
Markup: