Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindDomNode warning with react strict mode #1890

Closed
jRichardeau opened this issue Aug 30, 2019 · 4 comments · Fixed by #1898
Closed

FindDomNode warning with react strict mode #1890

jRichardeau opened this issue Aug 30, 2019 · 4 comments · Fixed by #1898

Comments

@jRichardeau
Copy link
Contributor

This is not really a bug but when using react in strict mode a warning appears linked to OutsideClickHandler :

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of r which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

To Reproduce
Run react in strict mode and use calendarContainer prop

Expected behavior
I think this can be solved with this Pomax/react-onclickoutside#319

Thank you

@belonog
Copy link

belonog commented May 25, 2020

Have the same issue when using customInput prop.

@siddacool
Copy link

I get the same issue when using showMonthDropdown and showYearDropdown

@Shaker-Hamdi
Copy link

Any updates on this?

@ievgen-klymenko-uvoteam
Copy link

ievgen-klymenko-uvoteam commented Aug 30, 2023

same, using showYearDropdown with react-hook-form and customInput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants