Fixed the dropdown menu bug
Dropdown menu was not properly closing when clicking away.
It was still open after opening another menu, so there were multiple menu instances floating around.
With this fix, opening another dropdown (or right-click menu) closes all the previous instances.