Fix datepicker value when reset by backspace or delete button