Having and empty dateTimePicker input field
When updating the minDate or maxDate
Then the input field should remain empty
And NOT change TO the new minDate or maxDate
To reproduce bug:
On example page: http://eonasdan.github.io/bootstrap-datetimepicker/
First Minimum Setup input is empty. (has id: #datetimepicker1)
Call from browser console:
$("#datetimepicker1").data("DateTimePicker").minDate("07/12/2020")
It will also fill the input value.
Or call from browser console:
$("#datetimepicker1").data("DateTimePicker").maxDate("07/12/1020")
It will also fill the input value.
One solution:
useCurrent: false in the date picker options
Most helpful comment
One solution:
useCurrent: falsein the date pickeroptionsDetails: http://eonasdan.github.io/bootstrap-datetimepicker/Functions/#usecurrent