I currently am working on an app account creation screen where I want to only enable a button when an item in a dropdown menu is selected. I have tried every which way I can think of, but the best I can do is enabling the button when the dropdown is first opened.
Hoping someone here can help. TIA!
Figma file: https://www.figma.com/file/8J5I19w9pMMfdmeF77kDq2/Untitled?type=design&node-id=975%3A6339&mode=design&t=lpau2Z6NMjnWLWuL-1
One way to accomplish this is by using a primitive state machine that loops through variants and checks for a variable state, which is set by the dropdown.
I made a demo here, where the first item in the “dropdown” sets the variable buttonActive to true or false, which shifts the internal loop in the button component to the correct state.
@Michael_Persson Thanks so much! I was actually somehow able to get it to work by using a “while pressing” action as opposed to a “on click” action.