Describe the bug
When I use IMask.pipe, the displayChar feature doesn't seem to have any effect. The same configuration works as expected when using IMaskInput from react-imask.
Thank you!
To Reproduce
https://codesandbox.io/p/sandbox/62vnkk
Expected behavior
To test, open the sandbox above and enter 123456789 into both inputs.
Expected behavior: Both inputs read XXX-XX-6789.
Actual behavior: The "with pipe" input reads 123-45-6789. The "with ImaskInput" input reads XXX-XX-6789.
Environment:
- OS: macOS
- Browser: Chrome + Safari
- Version: Chrome 136, Safari 18.4
- IMask version:
react-imask 7.6.1
- Framework/plugin version if used: React 18
Describe the bug
When I use
IMask.pipe, thedisplayCharfeature doesn't seem to have any effect. The same configuration works as expected when usingIMaskInputfromreact-imask.Thank you!
To Reproduce
https://codesandbox.io/p/sandbox/62vnkk
Expected behavior
To test, open the sandbox above and enter
123456789into both inputs.Expected behavior: Both inputs read
XXX-XX-6789.Actual behavior: The "with pipe" input reads
123-45-6789. The "with ImaskInput" input readsXXX-XX-6789.Environment:
react-imask7.6.1