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
Month select box is empty (and the select options do not update) when navigating to the prior year with the left navigation arrow.
The bug occurs when maxDate is used and displayMonths > 1. Some maxDates work and others do not. At the time of writing (May 11, 2018), the following dates produce the bug:
But a date in April works fine with no bug:
this.maxDate = {year:2018, month:4, day:10}
Steps to reproduce:
Use one of the broken dates above
Click the left navigation arrow until you reach Dec, 2017
Continue clicking the left navigation arrow.
Note: if you click the right navigation arrow before clicking the left arrow, the bug will not occur. To reproduce the bug, you have to click the left navigation arrow only.
Link to minimally-working plunker that reproduces the issue:
The text was updated successfully, but these errors were encountered:
stevethemacguy
changed the title
Month select box is empty when navigating to a prior year when displayMonths > 1
Month select box is empty when navigating to a prior year and displayMonths > 1
May 12, 2018
The list of months and years was generated from the focused date rather
than the first displayed date, which was inconsistent with the value used
in the datepicker navigation component, which uses the first displayed date.
This inconsistency was not visible when displayMonths = 1 but it sometimes
caused the following issue when several months were displayed:
the month select box was empty as it did not contain the currently displayed
month.
Closesng-bootstrap#2377
The list of months and years was generated from the focused date rather
than the first displayed date, which was inconsistent with the value used
in the datepicker navigation component, which uses the first displayed date.
This inconsistency was not visible when displayMonths = 1 but it sometimes
caused the following issue when several months were displayed:
the month select box was empty as it did not contain the currently displayed
month.
Fixes#2377Closes#2452
Bug description:
Month select box is empty (and the select options do not update) when navigating to the prior year with the left navigation arrow.
The bug occurs when maxDate is used and displayMonths > 1. Some maxDates work and others do not. At the time of writing (May 11, 2018), the following dates produce the bug:
this.maxDate = {year:2018, month:3, day:2}
this.maxDate = {year:2018, month:1, day:15}
this.maxDate = {year:2018, month:5, day:10}
But a date in April works fine with no bug:
this.maxDate = {year:2018, month:4, day:10}
Steps to reproduce:
Note: if you click the right navigation arrow before clicking the left arrow, the bug will not occur. To reproduce the bug, you have to click the left navigation arrow only.
Link to minimally-working plunker that reproduces the issue:
https://stackblitz.com/edit/datepicker-maxdate-bug
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 6.0.1
ng-bootstrap: 2.0.0
Bootstrap: N/A
The text was updated successfully, but these errors were encountered: