Motion: [BUG] AnimatePresence does not unmount children

Created on 19 Oct 2020  路  2Comments  路  Source: framer/motion

The children if an AnimatePresence component are not unmounted on exit, when there is a deeply nested motion.div that uses variants. If the nested motion.div uses objects for initial/animate/exit props, it works.

This bug affects version 2.9.0, older versions work.

See: https://codesandbox.io/s/framer-motion-nested-animate-presence-bug-k5gpq

bug in progress

Most helpful comment

This is fixed in 2.9.2, thanks for the report and clear example!

All 2 comments

AnimatePresence also doesn't seem to trigger the onExitComplete callback if passed one since 2.9.0

This is fixed in 2.9.2, thanks for the report and clear example!

Was this page helpful?
0 / 5 - 0 ratings