imaskjs icon indicating copy to clipboard operation
imaskjs copied to clipboard

Setting a Ref with useRef and ImaskMixin

Open cutterbl opened this issue 3 years ago • 0 comments

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

cutterbl avatar Mar 16 '22 17:03 cutterbl