TransitionGroup not firing v-move at array.push #14330
-
|
Hello everyone. Sorry for my bad English, I'm using a translator. I'm trying to create a toasts component for Vue 3. The key is that I need new elements to be at the bottom, and older elements to fade upward when a new element is added. The entire component is positioned at the bottom left. The problem is that v-move only starts working when the list overflows and older toasts are deleted. As I understand it, when adding an element, I call list.push(), which doesn't change the position of the other elements but simply adds the new element to the end, so v-move doesn't work. I'm already racking my brain trying to implement this. I've tried display flex and scaleY. Nothing works. Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
like this ? |
Beta Was this translation helpful? Give feedback.
-
|
No ideas? :( |
Beta Was this translation helpful? Give feedback.
-
|
If I set the Vue version to 3.5.22 in the Playground it seems to work correctly. This seems to be a regression in 3.5.23. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @aakudinov28, Working with Vue reactivity system and compilers can sometimes present interesting edge cases. A few quick things to consider regarding this topic:
I highly recommend checking out the Vue DevTools extension to inspect the component tree and verify if the state is updating as expected. Let me know if you want to dig deeper into the specific component logic. Hope this points you in the right direction! Let me know how it goes. Happy coding! |
Beta Was this translation helpful? Give feedback.
If I set the Vue version to 3.5.22 in the Playground it seems to work correctly. This seems to be a regression in 3.5.23.