-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'. at Modal.destroy #918
Comments
Good catch, I'll fix this in PR #916 - We do check for existing of element in all the other components, just need to add the one liner here. Thanks for reporting! |
@virgofx I'm not sure is that fix correct, maybe removing class from body need to be wrapped in that @devmarwen can you reproduce your error in codesandbox? |
@TheSharpieOne hmm, ok. Just created a new bug: https://codesandbox.io/s/9890x3mjmo Take a look at console output, body class is removing 2 times after Modal closing 😞 |
Try 5.0.0. I [re-]added some extra logic in 6ec3174 to ensure a modal only adds and removes the classname it adds once (well, ensure it doesn't add multiple and remove multiple) Multiple modals will still add multiple, but this helps each individual modal keeps track of the one it added and remove it when needed. |
Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'. I am getting this error so, can anyone help me sort it out? |
Issue description
Modal
#5.0.0-beta.3
es
(if umd, are you using the "full" version (only for v5+)?)#16.2.0
#4.0.0
What is happening?
Error when unmounting
Modal
route.Steps to reproduce issue
1. Create the route
2. The Component
3. Click on the backdrop to trigger the transition in
goBack
func.Error message in console
The text was updated successfully, but these errors were encountered: