Fix close/open datepickers in one runloop