imaskjs
imaskjs copied to clipboard
Setting a Ref with useRef and ImaskMixin
Describe the bug
I am creating my input using a preexisting control, using the IMaskMixin. When I attempt to use a useRef for my inputRef I receive the following error.
Warning: Failed prop type: Invalid prop `inputRef` of type `object` supplied to `IMask(Component)`, expected `function`.
To Reproduce Codesandbox Reproduction
Expected behavior That I can set a ref using useRef
Environment:
- OS: MacOS Catalina
- Browser chrome
- Version 99.0.4844.51
- IMask version 6.4.2
- Framework/plugin version if used react-imask 6.4.2