bootstrap-datepicker icon indicating copy to clipboard operation
bootstrap-datepicker copied to clipboard

After clearing a date, calendar goes back to current month instead of startdate

Open Abd-el-hamid opened this issue 3 years ago • 1 comments

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" });

Abd-el-hamid avatar Mar 14 '22 11:03 Abd-el-hamid

$('#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

adiprsa avatar Jun 02 '22 14:06 adiprsa