/** * @type {object} */ Object.defineProperty(DateTimePicker.prototype, "OPTIONS", { get: function () { return { useStrict: false, format: this.FORMAT, maxDate: this.MAX_DATE, minDate: this.MIN_DATE, defaultDate: null, viewDate: null, icons: this.ICONS }; } });Somewhere in another place of the code I see this:
if (!this.timeOnly) { let value = services.Date.momentFromDateString(val).format(this.FORMAT); this.OPTIONS.defaultDate = value; this.OPTIONS.viewDate = value; } if (!_.isUndefined(this.datetimepicker)) { this.datetimepicker.data("DateTimePicker").destroy(); this.datetimepicker = undefined; } this.datetimepicker = this.element.find(".input-group").datetimepicker(this.OPTIONS); this.datetimepicker.data("DateTimePicker").date(val);However, when I trace that code, the this.OPTIONS.defaultDate remains null despite an attempt to set it. I am thinking the reason is in the code above.