react-modal-dialog
react-modal-dialog copied to clipboard
REF in react 15
Hi Excellent component, however after updating to react 15 there is an issue..
invariant.js?99c6:39 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs.
I think because you give the component ref self it is causing the issue:
- The application has multiple react modules in the build.
- The ref attribute is not being used w/in the render method.
Note that this component had a decorator with a context and stores.
Hmm, do you know how to solve this? Haven't quite taken a look at actual react-15 issues
@qimingweng sorry not immediately I will try and have a look tomorrow - but it may not be easy to resolve.
I think it has to do with the fact that we're using render into subtree, which changes the "owner" vs the "parent" of a react element.
@qimingweng Yep that would do it.
Happy to take a PR sometime if you can figure out the details
@qimingweng Hello i get error
Can you help me?