fix #15: Only fire onClose event when the drop down is opened.