Open RGunning opened 6 years ago
When viewing full year i.e. month selection view, you should be able to see what year you are looking at.
If maxViewmode is set to 1, then title is set to 'Months' or the local translations and has no reference to the which year you are looking at.
1.8.0 (latest)
problematic lines https://github.com/uxsolutions/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js#L1066 https://github.com/uxsolutions/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js#L1069
Solution would be to add year to monthsTitle or an option to display the year instead of 'Months'
Today, I also noticed this bug.
The selected year should be displayed to have a consistent behaviour.
Still occurs with version 1.9.0
Expected behaviour
When viewing full year i.e. month selection view, you should be able to see what year you are looking at.
Actual behaviour
If maxViewmode is set to 1, then title is set to 'Months' or the local translations and has no reference to the which year you are looking at.
Datepicker version used
1.8.0 (latest)
Example code
problematic lines https://github.com/uxsolutions/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js#L1066 https://github.com/uxsolutions/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js#L1069
Solution would be to add year to monthsTitle or an option to display the year instead of 'Months'