added enableOnFocus function to datepicker