calendar does not disappear after selecting a date