I have a boolean variable that I want to use to toggle between two variants on a component. It is set up correctly and works as expected in the editing mode.
But when I add an interaction to a button that toggles the variable, it does not work on the variant. Weirdly, it does work for toggling the appearance of a text box. (I mapped the variable to a text box appearance value for testing). So the issue is not the interaction or mapping of the variable, it seems to be a bug specific to the variant in the preview. This is in Figma sites.
I have tried re-creating from scratch and the same issue occurs.