-
Notifications
You must be signed in to change notification settings - Fork 810
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
Uncaught Error: react-modal: You must set an element with Modal.setAppElement(el)
#267
Comments
@petrdamborsky yeah, you can't call |
@petrdamborsky since this issue is a bit old (sorry), did you found a way to make it work? |
@diasbruno Hey, sorry I missed the notification. I have actually moved on and found different package with modals. Oh and I was trying the setAppElement from the root component, not the modal itself.. still didn't work. Not sure what was wrong, but I won't be able to get back to that state now :) |
that's ok. |
This is a workaround for AllenFang#1087
Summary:
Just wanted to try this modal solution. Docs mention the setAppElement as an optional thing to do, but I am getting this error in console when I do not call it. I Have tried to call the Modal.setAppElement from the component itself and then also from the root app component. No place does help to get rid of this error.
Steps to reproduce:
Expected behavior:
I would expect not to be forced into setAppElement.
Additional notes:
The text was updated successfully, but these errors were encountered: