motion icon indicating copy to clipboard operation
motion copied to clipboard

[BUG] Lazy import of motion.div breaks drag constraints.

Open AlexeyKhen opened this issue 2 years ago • 2 comments

Hello! Recently found a bug, i use a simple div as a drag constraint for motion.div, it works as expected. However, whenever lazy component, which contains a motion.div with layoutId, is imported and rendered , it breaks the drag constraints.

https://github.com/framer/motion/assets/67691338/cb4b9b4a-b6c0-4890-924c-37c36a685883

Codesandbox: https://codesandbox.io/s/gallant-hellman-rrrszc?file=/src/App.tsx

Git repo: https://github.com/AlexeyKhen/bug-framer-motion

AlexeyKhen avatar Sep 19 '23 07:09 AlexeyKhen

Same

navalnii avatar Sep 19 '23 07:09 navalnii

Same

shivaluma avatar Apr 23 '24 04:04 shivaluma