bendavis78 / paper-date-picker

Material design date picker component for polymer
http://bendavis78.github.io/paper-date-picker/
MIT License
225 stars 132 forks source link

Added checks for min and max date when resetting out of range date #212

Closed brendon1982 closed 5 years ago

brendon1982 commented 6 years ago

Added checks for min and max date before trying to set the date to one of them in the cause of the date being outside the valid range.

The scenario this supports is when you only have a min date specified and the selected date is less than that date. Currently it crashes when trying to read the full year of the max date which would be null because only a min date is specified.