Open xd1gital opened 6 years ago
The root of the issue is not validating that a property defined as a Date is actually a date and not currently set to null (or any non-date value for that matter), this type of issue can be found in these locations: https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-calendar.html#L245 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-calendar.html#L323 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-calendar.html#L552 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-calendar.html#L660 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-calendar.html#L689 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-calendar.html#L704 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-year-list.html#L147 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-year-list.html#L169 https://github.com/bendavis78/paper-date-picker/blob/2.0.0-rc2/paper-date-picker.html#L283
this.maxDate and this.minDate need to be validated (null checking) before calling .getFullYear()