motion
motion copied to clipboard
[BUG] Lazy import of motion.div breaks drag constraints.
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
Same
Same