-
I have a Vue3 project with Pinia as state management. Using Headless UI with my modals and trying to wrap my head around the transitions. When using a child component mounted in the parent DOM and being dependent on state from Pinia that will be set when clicked the transition animates on open dialog but not on close. I guess this has to do with me mounting the child component using: As soon as I remove the v-if on the child it seems to work so it has to do with unmounting of the child. I'm having trouble being without the v-if though as the childcomponent is heavily dependent on the pinia state that is populated on click, I've tried populating the state on load with null values but then I run in to the issue that the child component does not reload with real data is it is already loaded with null values. When the dialog is closed I set openEditDialog ref to false and that seems to unmount the child component before the animation can take place. All transition code is inside the child component. Shouldn't Vue3 keep track of that the animation has to finish before removing the childcomponent ? Parent:
Child:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I also have this. Did you find a solution? |
Beta Was this translation helpful? Give feedback.
I also have this. Did you find a solution?