@haiilo/catalyst-angular 12.1.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -257,7 +257,14 @@ class DatetimeComponent {
|
|
|
257
257
|
this.lastValue = this.lastDateValue = this.lastTimeValue = value;
|
|
258
258
|
setTimeout(() => {
|
|
259
259
|
this.dateInput?.writeValue(value);
|
|
260
|
+
const timeAfterChangeDate = this.value?.getTime();
|
|
261
|
+
this.limitTime('min');
|
|
262
|
+
this.limitTime('max');
|
|
263
|
+
const isTimeChangedAfterLimit = this.value?.getTime() !== timeAfterChangeDate;
|
|
260
264
|
this.timeInput?.writeValue(value);
|
|
265
|
+
if (isTimeChangedAfterLimit) {
|
|
266
|
+
this.timeInput?.handleChangeEvent(this.timeInput?.nativeElement.value);
|
|
267
|
+
}
|
|
261
268
|
});
|
|
262
269
|
}
|
|
263
270
|
registerOnChange(fn) {
|