Describe the bug
If max date is set, datepicker should "auto-navigate" to that month. Now (2020-03-06) it opens current month even if the last enabled date (and set max date) is in the past months (e.g. 2020-02-20).
Steps to reproduce the bug
- set :date-disabled-fn to return days from previous months
- set max="2020-02-20"
- Open the datepicker
- See error: current month (2020-03) is opened even though there isn't anything to select and it's past set max-date
Expected behavior
If set, datepicker should auto-navigate to max date, not to current date if it's out-of-range.
Versions
Libraries:
- BootstrapVue: 2.6.0
- Bootstrap: 4.4.1
- Vue: 2.6.10
Environment:
- Device: PC
- OS: Windows 10 Pro
- Browser: Chrome
- Version: 80.0.3987.132 (Official Build) (64-bit)