Skip to main content
Solved

Issue with duplicating input in auto layout

  • December 23, 2021
  • 2 replies
  • 1208 views

Paula_Mourad

Hello Forum,

I’m facing a super strange behavior with a variant I created using auto layout and I’ve been trying to solve it for a few hours now.

I have a simple form, with several input fields. When I choose an input field and duplicate it, it duplicates downwards as expected. However, once I have an instance of that variant and I duplicate an input, it duplicates it outside of the element itself.

Here’s a video of what’s going on: https://youtu.be/aWVJhG26QdA

Best answer by Brian_Saunders

Hi Paula, this is happening because in the situation where it’s working, you are editing the main component. But with a component instance, you can’t add anything that’s not in the main component to begin with. Since you’re using auto layout, you would be able to hide inputs in your instance and have the layout of them adapt automatically. You just can’t add things or change the layer structure of instances because then they wouldn’t match the main component anymore.

View original
This topic has been closed for comments

2 replies

Brian_Saunders
  • New Participant
  • 135 replies
  • Answer
  • December 24, 2021

Hi Paula, this is happening because in the situation where it’s working, you are editing the main component. But with a component instance, you can’t add anything that’s not in the main component to begin with. Since you’re using auto layout, you would be able to hide inputs in your instance and have the layout of them adapt automatically. You just can’t add things or change the layer structure of instances because then they wouldn’t match the main component anymore.


  • 0 replies
  • January 23, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


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