When clicking the dropdown button again, hide the datePicker.

This PR preserves expected dropdown behaviors; when clicking a dropdown again, it should close, not re-open.