changhuixu / date-range-picker

Angular components for Date Range Picker and Date Picker using ng-bootstrap
https://changhuixu.github.io/date-range-picker/
14 stars 5 forks source link

When setting default date opening picker does not reflect these values #2

Closed jacobbp25 closed 5 years ago

jacobbp25 commented 5 years ago

Reproduce Set default date for date picker to be not the current month. See the default values on the page and open calendar, the calendar does not reflect the range values.

Example: //ts creditLimitRange = new DateRange( new Date(2018, 10, 24), new Date(2018, 11, 1) ); //html <date-range-picker id="creditLimitDate" [(dateRange)]="creditLimitRange">

After rendering the input will have dates "11/24/2018 - 12/1/2018" but opening the datepicker will not have that range selected, just todays date.