You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The component can now react if the current date value is below the minDate or above the maxDate.
- New component property enforceDateIntervals is used to activate this behavior
- When `enforceDateIntervals` is `true` the component will set the pikaday date to minDate or maxDate (currentDate < minDate or currentDate > maxDate) and call `onSelection` with the new date.
* Added documentation for enfoceDateIntervals option and behavior
* Fixed documentation about enforceDateIntervals
* Only call onSelection when enforceDateIntervals is true. We don't need to call pikaday.setDate
* Updated documentation
* Testing againts day instead of dates in tests for enforceDateIntervals
* When enforceDateIntervals is active we call onSelection on the next sync queue to prevent reassigments when rendering
* Removed unused code in the dummy application
* Removed everything related to enforceDateIntervals. The component by default reacts to minDate and maxDate changes, and change the pikaday current date accordingly
* Modified test names
* Instead of calling onSelection to force the date to be between minDate and maxDate we call pikaday.setDate directly
* Removed traces of enforceDateIntervals property used in some tests
* Moved the complete logic of checking for minDate and maxDates outside interval to the queued function
0 commit comments