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

Warning: findDOMNode is deprecated in StrictMode #250

Open
tbharathchandra opened this issue Sep 22, 2020 · 2 comments
Open

Warning: findDOMNode is deprecated in StrictMode #250

tbharathchandra opened this issue Sep 22, 2020 · 2 comments
Labels

Comments

@tbharathchandra
Copy link

Bug Report

I'm receiving a warning message like below when I'm using DropzoneDialogBase.
findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

Steps to reproduce

  • I'm passing almost the same props which are shown in this example https://yuvaleros.github.io/material-ui-dropzone/#!/DropzoneDialog from the documentation. The only changes I made is to make onDelete to delete respective fileobject, and place a other method from parent component in onClose and onSave which takes fileObjects as argument.

  • I receive this warning message when I click on the button to open the dialog box

Screenshot

Screenshot_1

Versions

  • OS: windows 10
  • Browser: firefox, chrome
  • @material-ui/core version: 4.11.0
  • material-ui-dropzone version: 3.4.0
@panz3r
Copy link
Contributor

panz3r commented Sep 22, 2020

Hi @tbharathchandra ,

Thanks for your feedback, unfortunately this warning comes directly from the Material-UI components used to render the Dialog.

For more information about the issue see material-ui #13394 and material-ui #13221.

@panz3r panz3r added the wontfix label Sep 22, 2020
@AmrAhmedA
Copy link

you can remove the <React.StrictMode> in your index.js and replace it with normal

.

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

No branches or pull requests

3 participants