tisho / Switch.framerfx

Utility component for Framer X that lets you switch between different states of an element
31 stars 4 forks source link

Switch inside switch #18

Open roswithawallner opened 3 years ago

roswithawallner commented 3 years ago

When i use a switch inside a switch i get an error in the newest version of framer desktop (2020.49.5).

Example: https://www.dropbox.com/s/ow1yf7sqdvcnr3b/Switch%20Bug.framerx?dl=0

tisho commented 3 years ago

Thanks for reporting and providing a repro file.

I've traced this issue to the most recent framer-motion update. It's caused by having an auto-animated switch nested inside a non-auto-animated switch.

I've asked Matt (author of framer-motion) to take a look, but until it gets resolved, you can either:

1) Use only non-auto-animate transitions for the nested switches, or 2) Use only auto-animate for both container and nested switches

roswithawallner commented 3 years ago

Thanks for looking at this so quickly!

tisho commented 3 years ago

@roswithawallner I saw this morning that Matt fixed the issue and pushed an update to framer motion (3.0.1). You will probably be able to see the changes on Framer Web as early as next week. I'm not sure when we have a desktop release planned, but the desktop app will need to have an update before this works as expected again.

roswithawallner commented 3 years ago

@tisho That's great to hear! Thanks!