react-input-mask icon indicating copy to clipboard operation
react-input-mask copied to clipboard

Make this lib Strict Mode compliant

Open gustavopch opened this issue 5 years ago • 8 comments

Getting the following error when using this lib in Strict Mode:

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of InputElement 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

This line seems to be the cause: https://github.com/sanniassin/react-input-mask/blob/master/src/index.js#L270

This should be fixed to avoid issues with Concurrent Mode (which will soon be released):

In Concurrent Mode, the lifecycle methods previously marked as “unsafe” actually are unsafe, and lead to bugs even more than in today’s React. We don’t recommend trying Concurrent Mode until your app is Strict Mode-compatible.

gustavopch avatar Nov 19 '19 18:11 gustavopch

I have the same problem! Any solution for this topic?

igorprandini avatar Jun 18 '20 18:06 igorprandini

Any ETA to fix this?

arashkay avatar Jun 30 '20 15:06 arashkay

any?

luisfagottani avatar Aug 14 '20 14:08 luisfagottani

Any news on this? Thank you!

marcosem avatar Aug 20 '20 23:08 marcosem

Any news, meus camaradas?

fuale avatar Aug 25 '20 09:08 fuale

I think that this lib was abandoned... =(

lucascco avatar Sep 17 '20 15:09 lucascco

Are there any popular forks of this repository that is being actively maintained? It would be nice to get this fixed.

ChrisCrossCrash avatar Jan 26 '21 07:01 ChrisCrossCrash

I have a fix for this here: https://github.com/sanniassin/react-input-mask/pull/308

ianchanning avatar Feb 25 '23 04:02 ianchanning