-
Notifications
You must be signed in to change notification settings - Fork 261
Description
So I was playing around with the @next
build of react-input-mask
, and specifically the bit about being able to wrap custom components. I was making some progress, but notice the following error hitting the console
findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of InputMaskChildrenWrapper which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
You can see this in the CodeSandbox I created for testing. I provided some very basic commenting in the InputWrapper
and Input
components about basic usage.
Also, attempting to change my input value (in the input) threw an Error about string.split
not being a function?