bootstrap-datepicker
bootstrap-datepicker copied to clipboard
After clearing a date, calendar goes back to current month instead of startdate
Expected behaviour
After clearing a date, calendar must go to the month of configured start date
Actual behaviour
After clearing a date, calendar goes back to current month instead of startdate
Datepicker version used
1.9.0
Example code
$('#sandbox-container input').datepicker({ format: "mm/dd/yyyy", startDate: "05/13/2022" });
$('#sandbox-container input').datepicker({ format: "mm/dd/yyyy", startDate: "05/13/2022", clearBtn: true, defaultViewDate: {month: 4} });
just add clearBtn for button clear date and defaultViewDate with object property month for opening datepicker default view in month 4