@acorex/components 20.2.0-next.3 → 20.2.0-next.5

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.
@@ -92,25 +92,31 @@ class MXCalendarBaseComponent extends MXBaseComponent {
92
92
  return this._minValue;
93
93
  }
94
94
  set minValue(v) {
95
- this.setOption({
96
- name: 'minValue',
97
- value: v,
98
- afterCallback: () => {
99
- this.render();
100
- },
101
- });
95
+ if (this.calendarService.isValidDate(v)) {
96
+ const value = this.calendarService.create(v);
97
+ this.setOption({
98
+ name: 'minValue',
99
+ value,
100
+ afterCallback: () => {
101
+ this.render();
102
+ },
103
+ });
104
+ }
102
105
  }
103
106
  get maxValue() {
104
107
  return this._maxValue;
105
108
  }
106
109
  set maxValue(v) {
107
- this.setOption({
108
- name: 'maxValue',
109
- value: v,
110
- afterCallback: () => {
111
- this.render();
112
- },
113
- });
110
+ if (this.calendarService.isValidDate(v)) {
111
+ const value = this.calendarService.create(v);
112
+ this.setOption({
113
+ name: 'maxValue',
114
+ value,
115
+ afterCallback: () => {
116
+ this.render();
117
+ },
118
+ });
119
+ }
114
120
  }
115
121
  get disabledDates() {
116
122
  return this._disabledDates;