@itfin/components 1.3.5 → 1.3.7

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.3.5",
3
+ "version": "1.3.7",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -2,15 +2,6 @@
2
2
  <div ref="container" class="editor" :class="{ readonly }" />
3
3
  </template>
4
4
  <style lang="scss">
5
- @font-face {
6
- font-family: "Virgil";
7
- src: url("https://unpkg.com/@excalidraw/excalidraw@0.16.1/dist/excalidraw-assets/Virgil.woff2");
8
- }
9
- @font-face {
10
- font-family: "Cascadia";
11
- src: url("https://unpkg.com/@excalidraw/excalidraw@0.16.1/dist/excalidraw-assets/Cascadia.woff2");
12
- }
13
-
14
5
  .editor {
15
6
  &.readonly {
16
7
  .cdx-input {
@@ -96,7 +87,7 @@ class itfEditor extends Vue {
96
87
 
97
88
  @Watch('value')
98
89
  onValueChanged(val, oldVal) {
99
- if (this.editor && (this.isIgnoreReload || JSON.stringify(val) === JSON.stringify(oldVal))) {
90
+ if (this.editor && (this.isIgnoreReload || JSON.stringify(val && val.blocks) === JSON.stringify(oldVal && oldVal.blocks))) {
100
91
  return;
101
92
  }
102
93
  setTimeout(() => {
@@ -207,7 +198,7 @@ class itfEditor extends Vue {
207
198
  }
208
199
  this.isIgnoreReload = true;
209
200
  this.$emit('input', await this.editor.save());
210
- this.$nextTick(() => { this.isIgnoreReload = false; });
201
+ setTimeout(() => { this.isIgnoreReload = false; }, 200);
211
202
  }
212
203
  });
213
204
  }