We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reproduction: https://jsfiddle.net/b2gezpw7/
If you pair MountingPortal with an append strategy and provide a transition it would fail to safely unmount when toggled by a wrapping v-if.
MountingPortal
append
transition
v-if
After unmount you'll get an error in console:
TypeError: Cannot read property 'removeChild' of null
The text was updated successfully, but these errors were encountered:
Yeah, I don't see a way to fix this tough
Sorry, something went wrong.
Hey, I am having this exact same problem...
Working on a Modal component that uses a transition on a MountingPortal with append toggled by a v-if
Error from Portal-Vue on beforeDestroy:
vue.runtime.js?4b76:625 [Vue warn]: Error in beforeDestroy hook: "TypeError: Cannot read property 'removeChild' of null"
Here is my MountingPortal element code:
<MountingPortal v-if="show" mountTo="#modals" name="source" append :transition="$options.components.Fade" > <div> ... </div> </MountingPortal>
No branches or pull requests
Reproduction: https://jsfiddle.net/b2gezpw7/
If you pair
MountingPortal
with anappend
strategy and provide atransition
it would fail to safely unmount when toggled by a wrappingv-if
.After unmount you'll get an error in console:
The text was updated successfully, but these errors were encountered: