Closed ghost closed 7 years ago
Instead of removing the call to reset
method maybe better to add this method to a Calendar component that will set the date to something neutral, e.g. an initial date from options or today.
Calendar.prototype.reset = function() {
this.select('today');
}
As an alternative the select
method can be called directly from Datepicker, e.g.
this._calendar.select('today');
So in this way the Datepicker will look synchronised with the Calendar.
I'll close this due to inactivity. If it's still relevant, please, feel free to comment.
Calendar doesn't have a reset method.