RobinHerbots / Inputmask

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

groupSeparator on el-input didn't work as expected #2629

Closed yuniit closed 2 years ago

yuniit commented 2 years ago

every time groupSeparator appears cursor position return back to previous value Here my codepen

vue@3.2.37 element-plus@2.2.5 inputmask@5.0.7

RobinHerbots commented 2 years ago

@yuniit ,

I guess it is some interference with the element-plus.

Adding the noValuePatching: true option in the inputmask solves the issue.

Maybe you can also try without the element-plus, if that also works then we can investigate more to see why.

yuniit commented 2 years ago

@RobinHerbots Thanks for the fast response. everything is working fine now with noValuePatching: true

yuniit commented 2 years ago

HI @RobinHerbots autoValue + noValuePatching make value reversed on focus.

https://user-images.githubusercontent.com/30621352/173319011-a5ae2f08-ac6f-406d-93b2-3496da9cf6fc.mov

please see Codepen

So currently i'm using computed for unmaked value Codepen

RobinHerbots commented 2 years ago

@yuniit ,

Just fixed the reversing issue. Have a try with 5.0.8-beta.25

yuniit commented 2 years ago

5.0.8-beta.25

I just run npm install inputmask@next --save but I got version 5.0.8-beta.17 instead of 5.0.8-beta.25

I tried npm install inputmask@5.0.8-beta.25 --save and I got this error:

npm ERR! notarget No matching version found for inputmask@^5.0.8-beta.25.

Is version 5.0.8-beta.25 available yet?

RobinHerbots commented 2 years ago

It is available now ;-)

On Thu, Jul 21, 2022 at 3:26 AM yuniit @.***> wrote:

5.0.8-beta.25

I just run npm install @.*** --save but I got version 5.0.8-beta.17 instead of 5.0.8-beta.25

I tried npm install @.*** --save and I got this error:

npm ERR! notarget No matching version found for inputmask@^5.0.8-beta.25.

Is version 5.0.8-beta.25 available yet?

— Reply to this email directly, view it on GitHub https://github.com/RobinHerbots/Inputmask/issues/2629#issuecomment-1190933377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACNX3YDLJZZVFK3KCDYFMTVVCRN3ANCNFSM5YJKVSUQ . You are receiving this because you were mentioned.Message ID: @.***>

yuniit commented 2 years ago

@RobinHerbots Thank you for fixing the reversing issue. but it seems like autoUnmask not working if noValuePatching is set to true

RobinHerbots commented 2 years ago

@yuniit ,

I think that is logical as the value property isn't altered. Have a read at https://github.com/RobinHerbots/Inputmask#unmaskedvalue