This allows the user can select both a date and a time without the window closing.  Otherwise, the window would close immediately when a date is selected, but not when a time is changed.