While testing new features in prototyping, I’m trying to realise a simple action: decrease counter while clicking the button. Button should reflect the clicks and “disabled” state, when counter getting “0”.
Button is a component with variants. While clicking on it I want to change to variant of button from “Default” to “Active” (color changing).
So the prototype interaction set for the button is:
— Click: Conditional (decreasing counter and switching the button do “Disabled” when counter is getting “0”)
— Press: Change to… (switching the button to variant “Active” while pressing on it).
The issue is that button doesn’t work properly. First Press Interaction “freeze” it and the button do not turns back to variant “default” after click.
If I remove “Conditional” interaction from the button, “Press” interaction works fine.
So… I don’t understand that’s going on. Is it a bug or I made a mistake somewhere?