Can't watch field when using react-input-mask
See original GitHub issueDescribe the bug
When using react-input-mask
, the input stops working as soon as you watch
the field.
To Reproduce Steps to reproduce the behavior:
- Open the CodeSandbox.
- Try typing in the first input: it works.
- Try typing in the second input: you can’t type.
Codesandbox link https://codesandbox.io/s/exciting-germain-73xe4
Expected behavior The second input should work just like the first one.
Desktop:
- OS: Linux
- Browser: Chrome
- Version: 78
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Cannot use react-input-mask with a children component in ...
So I cannot pass a TextField as a children for InputMask component. I also tried this solution: <InputMask mask="(0)999 999 99 99" value={phone} ......
Read more >Implementing react-input-mask for web apps - LogRocket Blog
Learn how to avoid transcription errors in React using input masks, which provide user-friendly constraints for your user input fields.
Read more >[InputMask React] Numeric input mask is working, but the ...
Hello, When I use the "MaskNumber" in our application the input mask works on the input field, but the input value is not...
Read more >React Text Field component - Material UI - MUI
The TextField wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), ......
Read more >Control data entry formats with input masks - Microsoft Support
Add an input mask to a table field using the Input Mask Wizard · In the Navigation Pane, right-click the table and click...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bluebill1049 I’ve replicated your last suggestion. It doesn’t work well, try typing in the second input: https://codesandbox.io/s/admiring-glade-b5p7k
I understand. Thanks @bluebill1049. I don’t know if you want to keep this issue open while you investigate further. You may close it if you want.
Just as a side note: maybe you should think about adding masking capabilities to this lib. 🤔