reset minDate and maxDate when set empty string

With these changes, the maxDate and minDate are restored when set an empty string.
Thanks for this project!