uppy: DashboardModal does not work in react

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

https://codesandbox.io/s/awesome-pond-771nfb?file=/src/Uppy.js

Steps to reproduce

Click on upload some music, the dashboard modal does not work. It works fine if I remove componentDidMount lifeycyle method

Expected behavior

It should open the dashboard modal

Actual behavior

It is not working as expected

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

Uploading works for me too, no crash as you showed.

Hi, you can keep strict mode but you should never declare Uppy inside the component as explained in the docs. Here is the fix:

https://codesandbox.io/s/hidden-http-dsc1ht?file=/src/Uppy.js