Replies: 2 comments 2 replies
-
Dialogs are already removed from the DOM when it is closed, I think there is no need to use For best practices use |
Beta Was this translation helpful? Give feedback.
0 replies
-
@JarvisH can you share the code for |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the feature
Hallo.
This may be a question of best practices and a new feature is perhaps not needed, but here goes:
When using Dialog components, they are rendered to the DOM using the
open
Property. This works just fine with a few exceptions:open
is true.Such manual cleanup could be avoided when using
v-if
to render the Dialog, as it gets remounted when shown:v-if
however does not play well with<DialogPortal />
and Vue<Transition />
, essentially breaking animations.So the question is: could this easily be implemented in Radix? I managed to solve it using a wrapper component and provide/inject, but a built-in solution would be great. Or is the issue caused by bad practices on my part?
FYI my solution where the open state is handled internally via a wrapper component, which can listen to the
afterLeave
event of the Vue transition.Additional information
Beta Was this translation helpful? Give feedback.
All reactions