Open
Description
Summary:
I upgraded from version 1.6.5 to 2.2.0 and started to see get this error described here:
https://facebook.github.io/react/warnings/refs-must-have-owner.html
Steps to reproduce:
- Use version 2.2.0 of react-modal.
- Create an app with modal and another component to be rendered to the dom.
- add ref prop on the additional component
Expected behavior:
App should work the same as it did before the version's upgrade.
Link to example of issue:
For example, Use react-modal with react-datePicker and you will automatically get this error since react-datePicker has some refs in it's inner implementation.