precedent
precedent copied to clipboard
Fixed the phone screen leaflet exit animation
Exit animation weren't working properly due to 2 AnimatePresence wrap
@azaek is attempting to deploy a commit to the Elegance Team on Vercel.
A member of the Team first needs to authorize it.
Thanks for the PR! Just checking this out – it seems like it's still not working?
https://user-images.githubusercontent.com/28986134/213510905-c8e824f8-47aa-48d5-9e84-72f70e17ba90.mp4
Weird I have literally the same code in another project and it works 😶. I'm gonna look more
https://user-images.githubusercontent.com/92246587/213555906-abc13005-90ff-4df8-82d3-116eee63970c.mp4
Update on the issue: AnimatePresence doesn't trigger the exit animation if the dialog components are used from hooks. If you use the base dialog component without it works fine.
@azaek whoa interesting! So in this case you can't use the Leaflet component from within a hook? Sounds kinda odd – would it be a bug on Framer Motion's side?
Yea it's very odd. I guess it's from Framer Motion's side, I raised a bug issue there. Let's see
Awesome, thank you so much @azaek! Can you link to the issue here?
Sure, https://github.com/framer/motion/issues/2009