Close button dropdown panel after panel is touched

i have a button dropdown panel with some buttons on it. Id like the panel to close after the button on the panel is pressed. Is there an easy way to do it besides clicking on the body?

4 replies