@itfin/components 1.2.75 → 1.2.77

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.2.75",
3
+ "version": "1.2.77",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -184,7 +184,7 @@ class itfDatePickerInline extends Vue {
184
184
  @Watch('value')
185
185
  onValueChanged() {
186
186
  if (!this.valueAsLuxon) {
187
- this.calendar.clear({ silent: true });
187
+ this.calendar && this.calendar.clear({ silent: true });
188
188
  return;
189
189
  }
190
190
  this.calendar.selectDate(this.valueAsLuxon.toJSDate(), { silent: true });
@@ -186,8 +186,8 @@ class itfDatePickerInline extends Vue {
186
186
 
187
187
  @Watch('value')
188
188
  onValueChanged() {
189
- if (!this.valueAsLuxon) {
190
- this.calendar.clear({ silent: true });
189
+ if (!this.valueAsLuxon || !this.calendar) {
190
+ this.calendar && this.calendar.clear({ silent: true });
191
191
  return;
192
192
  }
193
193
  const date1 = this.calendar.rangeDateFrom && DateTime.fromJSDate(this.calendar.rangeDateFrom).toFormat('yyyy-MM-dd')