2 changed files with 52 additions and 1 deletions
@ -0,0 +1,51 @@ |
|||||
|
diff --git a/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs b/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs
|
||||
|
index e3457ea..a069460 100644
|
||||
|
--- a/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs
|
||||
|
+++ b/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs
|
||||
|
@@ -259,9 +259,9 @@ export class MatDatetimepickerClockComponent {
|
||||
|
value = 0; |
||||
|
} |
||||
|
// Don't close the minutes view if an invalid minute is clicked. |
||||
|
- if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
|
||||
|
- return;
|
||||
|
- }
|
||||
|
+ // if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
|
||||
|
+ // return;
|
||||
|
+ // }
|
||||
|
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); |
||||
|
} |
||||
|
this._timeChanged = true; |
||||
|
diff --git a/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs b/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs
|
||||
|
index 7699ff6..01aad13 100644
|
||||
|
--- a/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs
|
||||
|
+++ b/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs
|
||||
|
@@ -951,9 +951,9 @@ class MatDatetimepickerClockComponent {
|
||||
|
value = 0; |
||||
|
} |
||||
|
// Don't close the minutes view if an invalid minute is clicked. |
||||
|
- if (!((_b = this._minutes.find((m) => (m === null || m === void 0 ? void 0 : m['value']) === value)) === null || _b === void 0 ? void 0 : _b['enabled'])) {
|
||||
|
- return;
|
||||
|
- }
|
||||
|
+ // if (!((_b = this._minutes.find((m) => (m === null || m === void 0 ? void 0 : m['value']) === value)) === null || _b === void 0 ? void 0 : _b['enabled'])) {
|
||||
|
+ // return;
|
||||
|
+ // }
|
||||
|
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); |
||||
|
} |
||||
|
this._timeChanged = true; |
||||
|
diff --git a/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs b/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs
|
||||
|
index 809a57d..f712b84 100644
|
||||
|
--- a/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs
|
||||
|
+++ b/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs
|
||||
|
@@ -946,9 +946,9 @@ class MatDatetimepickerClockComponent {
|
||||
|
value = 0; |
||||
|
} |
||||
|
// Don't close the minutes view if an invalid minute is clicked. |
||||
|
- if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
|
||||
|
- return;
|
||||
|
- }
|
||||
|
+ // if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
|
||||
|
+ // return;
|
||||
|
+ // }
|
||||
|
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); |
||||
|
} |
||||
|
this._timeChanged = true; |
||||
Loading…
Reference in new issue