Hi guys,
my app has some dropdown menus and I want them to transitions back to their original (non visible) location when the user taps anything but the dropdown menu (background, other button, textfield,…). I got this working by adding eventlisteners to all the objects other than the dropdown menu. But this seems like a lot of repeated code for something that looks so simple. How would you guys approach a situation like this?
Kind regards,
Bram