-
-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] AnimatePresence
+ layout
bugs
#3059
Comments
Just chiming in to say that we're observing the same bug: thanks for the great report and repro case. |
I've had same issue on my website, wrap your layout components with |
I faced the exact same issue (using In my case, I'm using a I could bisect the exact change that introduced the issue: #2992 and first appeared in v11.17.0. This issue is the same as #1619 |
Chiming in to say I think this is also happening to me. I have a component with a custom cursor that whenever the mouse is not on top of the component, the cursors lock in at the center of the component (using two different divs and layoutId):
I noticed that, whenever I hovered the component, afterwards I couldn't change route. The page transition would start but it would get stuck halfway. I tried removing the layout animation (removed the layout props) and this did stop happening. |
AnimatePresence
+ layout
bugs
A quick attempt at a reproduction hasn't worked so I'll take a look on Monday. In the meantime a really simple example I could throw in a test would be appreciated. Something like this (though this didn't reproduce the bug yet)
|
Why was this closed though? |
Friday evening 😅 |
We're having a bug that sounds similar after upgrading to 11.18.2 - layout animations are "cancelled"/immediately snapping when an item is added in AnimatePresence. This seems to be fixed though in v12.0.1, and the changelog description for that sounds relevant. I wasn't however able to repro in an isolated sandbox Just adding this anecdote in case it's helpful. Again not sure if it's exactly the same bug but seemed vaguely similar |
1. Read the FAQs 👇
2. Describe the bug
After updating the library from version "framer-motion": "^10.16.16" to version "motion": "^11.18.0", a strange issue appeared. The toggle that contains layout (below on line 41) prevents the dialog window from being removed from the DOM. Maybe this issue is related to this one.
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
URL
4. Steps to reproduce
5. Expected behavior
The element should be removed from the DOM when closed.
6. Video or screenshots
Screen_Recording_2025-02-11_at_09.52.48.mp4
7. Environment details
mac OS 15.3, Google chrome latest.
The text was updated successfully, but these errors were encountered: