Fixed issue #17: Dropdown menu not closed on click