Nested component lose variable value

Hi, I created a component that is linked to Variables and change the value and the variant whenever I change the Mode.

But once this is nested into another component the Variables is disconnected and only change the copy label but ignore the variant change. I moved out from the component and outside the component works normally.

I cannot show the screens because is a sensitive project with NDA but I can show to someone on Figma the bug.


Have the same issue. A component which Variant depends on interactively set Variable stops working, when it is nested in a Variant of another component.

Example: a Status compoent has Variants: in progress, complete. It is set with onClick action on some buttons that set variable status, which is assigned on component instance, as a value of a Variant.
Now this status component is used within a larger context (inside another component). Variable is no longer assigned as a value to Variant of this component.

IMO it should persist.