Fix datepicker element is not always clickable