Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref prop does not work on div directly inside AnimatePresence with mode="popLayout" [BUG] #2604

Open
saltnpixels opened this issue Apr 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@saltnpixels
Copy link

1. Read the FAQs 馃憞

2. Describe the bug
ref prop does not work on the div directly inside AnimatePresence with mode="popLayout"
The ref always comes back undefined.

@saltnpixels saltnpixels added the bug Something isn't working label Apr 1, 2024
@leonsbuddydave
Copy link

leonsbuddydave commented Apr 15, 2024

Seeing this same issue with a motion.video inside of AnimatePresence; the ref callback is never called. Setting mode to sync correctly sets the ref.

EDIT: This is on 11.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants