Skip to main content
Jeffrey_Johnson
October 26, 2023
Solved

BUG: Preview not preserving hide/show in component instances...until you manually swap with preview open

  • October 26, 2023
  • 4 replies
  • 461 views

I have created an interactive dropdown component with ~10 items that can be hidden or shown, but are shown by default.

When editing an instance, I have no problem hiding items to create a dropdown with the correct number of options. And, as long as my component instance is in the “expanded” state, all of the hide/shows are preserved when the component is interacted with.

However, if the component is in the “collapsed” state, then when previewing the interaction the component defaults to the master component’s hide/show.

Imgur

…until I swap variants with the preview open. Then it starts working.

Imgur

This topic has been closed for replies.

4 replies

tank666
tank666Answer
October 26, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Jeffrey_Johnson
October 26, 2023

Hey tank, thank you for the reply. However, I don’t think your previous replies quite solve my issue. I have a hidden list and identical structure/naming scheme across both variants:

Again, this structure has no problem preserving things like text changes, and does remember to hide/show items when used as an instance…it just doesn’t work in preview.

Jeffrey_Johnson
October 26, 2023

Ok, after some experimentation, (I ended up deleting and re-adding the “collapsed” variant and re-hiding the “Drop Items” menu. Thank you Tank666!

tank666
October 26, 2023

Could you share a link to the example file?

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank