@ng-matero/extensions 15.6.0 → 15.6.1
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.
|
@@ -699,6 +699,12 @@ class MtxClock {
|
|
|
699
699
|
}
|
|
700
700
|
date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), this._adapter.getHour(this.activeDate), value);
|
|
701
701
|
}
|
|
702
|
+
// if there is a dateFilter, check if the date is allowed if it is not then do not set/emit new date
|
|
703
|
+
// https://github.com/ng-matero/extensions/issues/244
|
|
704
|
+
if (this.dateFilter &&
|
|
705
|
+
!this.dateFilter(date, this._hourView ? MtxDatetimepickerFilterType.HOUR : MtxDatetimepickerFilterType.MINUTE)) {
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
702
708
|
this._timeChanged = true;
|
|
703
709
|
this.activeDate = date;
|
|
704
710
|
this._changeDetectorRef.markForCheck();
|