Tempus-dominus: Changing MinDate/MaxDate should NOT update empty Input field

Created on 7 Dec 2016  路  1Comment  路  Source: Eonasdan/tempus-dominus

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.

Most helpful comment

One solution:

>All comments

One solution:

Was this page helpful?
0 / 5 - 0 ratings