Calendar popup remains on screen after selecting a date