Preventing setting defaultDate on an empty input to set an (incorrect) input value.
This commit is contained in:
parent
caf2916169
commit
cc80af42fe
2
jquery-ui-timepicker-addon.js
vendored
2
jquery-ui-timepicker-addon.js
vendored
|
@ -908,9 +908,9 @@ $.datepicker._setTimeDatepicker = function(target, date, withDate) {
|
|||
}
|
||||
else tp_date = new Date(date.getTime());
|
||||
if (tp_date.toString() == 'Invalid Date') tp_date = undefined;
|
||||
}
|
||||
this._setTime(inst, tp_date);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue