fixed the disappearing view content if you click outside the date picker