NModal in router view #4121
Unanswered
aflatscher-loop
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to have
vue-router
routes as modals. Ideally theNModal
component would be inside the child route's component, so I can manage the closing behaviour there (pressing ESC key, clicking on modal background, etc.). I managed to show/hide the modal based on route match, but I completely lost the open/close animations.I played around with vue's
Transition
to controlNModal
'sshow
prop. Especially to delay the unmount until its close animation is finished, but I can't wrap my head around it.Here's a simple codesandbox to illustrate my problem:
https://codesandbox.io/s/laughing-ishizaka-mxy5rp
Does anyone have an idea on how to handle such a case?
Beta Was this translation helpful? Give feedback.
All reactions