@itfin/components 1.2.76 → 1.2.78

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.76",
3
+ "version": "1.2.78",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,4 +1,4 @@
1
- if ("paintWorklet" in CSS) {
1
+ if (typeof CSS !== 'undefined' && 'paintWorklet' in CSS) {
2
2
  CSS.paintWorklet.addModule(
3
3
  "https://www.unpkg.com/css-houdini-squircle@0.1.3/squircle.min.js"
4
4
  );
@@ -186,7 +186,7 @@ class itfDatePickerInline extends Vue {
186
186
 
187
187
  @Watch('value')
188
188
  onValueChanged() {
189
- if (!this.valueAsLuxon) {
189
+ if (!this.valueAsLuxon || !this.calendar) {
190
190
  this.calendar && this.calendar.clear({ silent: true });
191
191
  return;
192
192
  }