imaskjs
imaskjs copied to clipboard
onAccept is called 2 times when simultaneously updating value and mask
Describe the bug When simultaneously updating the value and mask and passing them to IMaskInput onAccept is called 2 times
- With new mask and old value
- With new mask and new value
To Reproduce STR:
- Add input with mask (use IMaskInput)
- Pass to IMaskInput value and mask
- Simultaneously change value and mask
- Check mask value in onAccept
Expected behavior onAccept is triggered once with a new value and mask
Environment:
- OS: MacOS
- Browser chrome
- Version 132.0.6834.162
- IMask version 6.6.3
- React 18.0.0
Additional context Problem also reproduced on IMask version 7.6.1
faced the same problem
+1