Skip to main content
Solved

Trouble setting a component that changes the state of its parent

  • November 29, 2023
  • 1 reply
  • 273 views

Andrea_Monfrini

I’m having trouble setting a component that changes the state of its parent.
I have done this flux:

  • Create component A with default and hover variant
  • Create component B with two variants (dropdown closed and open)
  • Add component A as a child of component B. Add an On click → Change to interaction to the instance of component A. The two variants of component B will show up as options under the variant drop-down; you can open the drop-down, but you cannot select any variant besides the one that is already selected

Is this a bug of Figma? Or is my fault?

Best answer by djv

Hey Andrea, thanks for reaching out!

It’s hard to be sure without seeing your file, but from what you’ve described, you might be better off using multiple action variables instead:

Figma Learn - Help Center
View original
This topic has been closed for replies.

djv
Figmate
  • Community Support
  • November 29, 2023

Hey Andrea, thanks for reaching out!

It’s hard to be sure without seeing your file, but from what you’ve described, you might be better off using multiple action variables instead:

Figma Learn - Help Center

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings