[3.8] Fix #1559 z-index issue for datepickers