Closes a dropdown when another one is opened

Fixes #384