This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Aalok Trivedi
Posted Mar 15 - Read on Facebook

I have an array of buttons with a 'selected' and 'deselected' state. How do I go about checking if any button in the array is in the 'selected' state.

So essentially I want something like:

for button in buttonArray
button.onClick ->
this.stateCycle("selected", "default")

if any button in buttonArray state.current == "selected"


Aalok Trivedi

for anyone curious, this is the solution:

John Lee

could you post the Framer? Would love to take peek ;)

Read the entire post on Facebook