You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the animation should work properly, and animation classes should be cleaned up
What is actually happening?
the enter animation doesn't work and the new item's element keeps the list-enter-to class forever
The style tag binding triggers a second rerender of the transition-group component between the transition-group setting _enterCb on the entering new child and nextFrame triggering its callback. prevChildren is updated to include the new item, and update calls the pending _enterCb callback. Then after that, nextFrame triggers, but because _enterCb can only be called once, it won't be called, so the enter-to class will remain on the element.
This only happens if the transition-group has a move transition.
Version
2.5.17
Reproduction link
https://jsfiddle.net/nkovacs/Lskfredn/
Steps to reproduce
What is expected?
the animation should work properly, and animation classes should be cleaned up
What is actually happening?
the enter animation doesn't work and the new item's element keeps the
list-enter-to
class foreverThe style tag binding triggers a second rerender of the transition-group component between the transition-group setting
_enterCb
on the entering new child andnextFrame
triggering its callback.prevChildren
is updated to include the new item, andupdate
calls the pending_enterCb
callback. Then after that,nextFrame
triggers, but because_enterCb
can only be called once, it won't be called, so theenter-to
class will remain on the element.This only happens if the transition-group has a move transition.
The bug also occurs if the elements are changed between
update
andnextFrame
: https://jsfiddle.net/nkovacs/cnjso1h5/The text was updated successfully, but these errors were encountered: