RobinHerbots / Inputmask

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

React onChange event doesn't work properly after clean value #2031

Open YoginAlex opened 5 years ago

YoginAlex commented 5 years ago

To Reproduce Steps to reproduce the behavior:

  1. Go to https://jsfiddle.net/yogin/n5u2wwjg/224181/
  2. Enter one symbol to field
  3. Press CleanUp button
  4. Enter one the same symbol to to field - As U can see - the state not updating.
  5. Enter one more symbol
    • As U can see - state updating and now we can find both symbols here.

Expected behavior State of Component updating after entering the first symbol in step 4

Live example https://jsfiddle.net/yogin/n5u2wwjg/224181/

Desktop (please complete the following information):

Additional context In the JQuery version of lib React onChange not working absolutely. So I use dependencyLibs/inputmask.dependencyLib.js Version: 4.0.3-beta.4 and inputmask.js Version: 4.0.3-beta.4. Check it in the jsfiddle example.

Maybe this problem connected to this bug https://github.com/RobinHerbots/Inputmask/issues/1377

thelebdev commented 5 years ago

Just tried it, it's working..

YoginAlex commented 5 years ago

Here GIF video for example: https://monosnap.com/file/4HhZxjddg8F9azpUG6Xgkpk97Mxdyg

thelebdev commented 5 years ago

The link isn't opening for me 😩 Would you mind sending a Google Drive link?

YoginAlex commented 5 years ago

https://drive.google.com/open?id=1OHOPN6HqzmIA8l1ip9sksBfDe4tWP3hP

https://www.dropbox.com/s/8b2il4joug4t78h/inputmask.gif?dl=0

prathick commented 3 years ago

Hey guys, Any update on this issue?

bhoomika911 commented 3 years ago

@RobinHerbots Can you please help with this?