There’re two dropdowns on the first screen and when you hover it dropdown opens its list. And my goal close it by clicking on one of dropdown’s item in that list. But I can’t figure out how to do it.
“Users” screen is also dropdowns, but in this case my goal - button “Update” should be inactive and in case if user make changes in role → button highlighted in active state
I would be super appreciated if you can help
Victoria
Go to interactions / click on the mouse click element trigger that has been setup.
Set first click action to open
Set second click action to close
In first click action make sure the actions are as follows:
Dropdown List - set hide/show to hidden (set as initial state)
—— [space]
Dropdown List - hide/show set to display: block
Icon arrow (leave as it is)
In close action make sure it shows the following:
Dropdown List - set hide/show to hidden
— [space]
Icon Arrow (leave it as it is)
Next click on dropdown list in the layers panel. Go to interactions. Add a mouse click interaction and on first click select close as the animation. Leave the second click option blank
I did a test and it means that the dropdown shows and hides on click of the Coinbase Pro text, but also it closes when any item of the dropdown has been chosen.
Also note that you should be able to use the same interactions for multiple dropdowns if using the same class naming for the dropdowns and selecting the right option to affect them e.g. select ‘Affect Class / only children with this class’.