Skip to main content
Question

How to fix dopdown menu instances from changing other dropdown menu instances on different frames?


Hi!

I created a dropdown menu component with two variants (collapsed and expanded). I set the interactions to where when you tap on one of the items in the expanded list, it will set the default text variable displayed to the text for the selected item and change the state back to the collapsed menu.

I have instances of the dropdown menu component on several different frames, but when I enter prototype mode if I select an item on one frame from the dropdown menu, when I go to another frame that item text is already displayed in collapsed dropdown menu instead of the default text.

For example, if I go to customize an item the first time the dropdown menu displays “select option” and I can choose the option “wheat bread” and it will display “wheat bread”, but when I go to a different frame to customize a different option it will already be displaying “wheat bread” instead of displaying the default “select option”.

Anyone know how to fix this?

5 replies

Gayani_S
Figmate
  • Community Support
  • 1944 replies
  • October 17, 2023

Hey @Amy_Phillips, to have a better understanding of your issue I would need to see a screen recording or a copy of your file.


  • 3 replies
  • October 23, 2023

Hi, I have a similar issue. I have screen recorded the demo but Figma will not let me upload it so here is google drive link to it.

drive.google.com

Clicking on the drop down items “Nigeria” and “Ghana” navigates to the yellow and purple frames respectively. The issue there is that the frames display the dropdown as open instead of collapsed


  • 3 replies
  • October 23, 2023

@Gayani_S just tagging you. 👋


  • 3 replies
  • October 24, 2023

So I ticked the “Reset component state” checkbox and it worked. 🤦‍♂️


Gayani_S
Figmate
  • Community Support
  • 1944 replies
  • October 27, 2023

Hey @Darlynton, thank you for the screen recording. Glad it works!


Reply


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