*8063* prevent datepickers from becoming orphaned on modal close