A container set to horizontal auto layout with wrap, contains several instances of a component called ‘rectangle’.
This rectangle component has 2 variants : A ‘default’ variant (a black square) and a ‘hidden’ variant (the same black square with a width and height set to 0px). Upon clicking the default square, the component changes to the ‘hidden’ variant.
If you play the prototype, it’s great, upon clicking each ‘rectangle’, they disappear and the remaining instances wrap.
But if I create a component from the container, the instances of this component don’t have the same behavior and the instance of ‘rectangle’ don’t wrap anymore.
Am I missing something here ?
Here’s the Link :
Thanks for your help.
The idea is to create a large field with many deletable chips inside.