monkey-style-guide 2.0.95 → 2.0.96
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.
- package/bundles/monkey-style-guide.umd.js +5 -5
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.js +6 -5
- package/fesm2015/monkey-style-guide.js +5 -4
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/monkey-style-guide-2.0.96.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.95.tgz +0 -0
|
@@ -2847,11 +2847,11 @@
|
|
|
2847
2847
|
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
2848
2848
|
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2849
2849
|
};
|
|
2850
|
-
MonkeyDateRangePickerComponent.prototype.clearDates = function (
|
|
2851
|
-
if (
|
|
2850
|
+
MonkeyDateRangePickerComponent.prototype.clearDates = function () {
|
|
2851
|
+
if (this._disabled)
|
|
2852
|
+
return;
|
|
2852
2853
|
this._dateForm.setValue({ startDate: null, endDate: null });
|
|
2853
|
-
|
|
2854
|
-
this.writeValue(value);
|
|
2854
|
+
this.writeValue(this._dateForm.value);
|
|
2855
2855
|
};
|
|
2856
2856
|
MonkeyDateRangePickerComponent.prototype.navigateToToday = function () {
|
|
2857
2857
|
this._dateFirst = moment();
|
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
this.onModelTouched(this._dateForm.value);
|
|
2885
2885
|
}
|
|
2886
2886
|
else {
|
|
2887
|
-
this.clearDates(
|
|
2887
|
+
this.clearDates();
|
|
2888
2888
|
}
|
|
2889
2889
|
},
|
|
2890
2890
|
enumerable: false,
|