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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Components with Variants triggers an JS error on transition #21

Open
christophevouillamoz opened this issue Aug 30, 2021 · 0 comments

Comments

@christophevouillamoz
Copy link

When using a smart component with variants within a Frame (which is used as a state of a Switch instance), Framer throws the following error on state change if the selected variant of the smart component is not the first variant. In the preview you will recognize it with a lack of animation. The animation will stuck around 0.2 seconds of animation time.

js_error

The smart component is a button that uses hover and pressed state and variants of colors as well. The smart component has optional icons left and right (Material Package) that are hidden by default (in tests they did not affect the error).

smart_component

I created a Framer project to test & reproduce it: https://framer.com/share/Switch-Smart-Component-Bug--vGNyAas6SJMxj6MjlkJt/RJEJsG3kl

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant