@ditojs/admin 2.2.4 → 2.2.6

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": "@ditojs/admin",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "type": "module",
5
5
  "description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
@@ -82,7 +82,7 @@
82
82
  "vite": "^4.3.1"
83
83
  },
84
84
  "types": "types",
85
- "gitHead": "4812f8f5f86ad6a33b7f7a3585442e7acf444637",
85
+ "gitHead": "f0449472c803ce29c76442f6b11f646c5bb5dd80",
86
86
  "scripts": {
87
87
  "build": "vite build",
88
88
  "watch": "yarn build --mode 'development' --watch",
@@ -24,8 +24,8 @@ export default {
24
24
 
25
25
  data() {
26
26
  return {
27
- parsedValue: null,
28
- changedValue: null,
27
+ parsedValue: undefined,
28
+ changedValue: undefined,
29
29
  focused: false
30
30
  }
31
31
  },
@@ -301,11 +301,13 @@ export default {
301
301
  const value =
302
302
  this.parsedValue !== undefined ? this.parsedValue : this.value
303
303
 
304
- // For some odd reason, the native change event now sometimes fires twice
305
- // on Vue3. Filter out second call.
306
- // TODO: Investigate why this happens, and if it's a bug in Vue3.
307
- if (value === this.changedValue) return
308
- this.changedValue = value
304
+ if (this.$options.nativeField) {
305
+ // For some odd reason, the native change event now sometimes fires
306
+ // twice on Vue3. Filter out second call.
307
+ // TODO: Investigate why this happens, and if it's a bug in Vue3.
308
+ if (value === this.changedValue) return
309
+ this.changedValue = value
310
+ }
309
311
 
310
312
  this.markDirty()
311
313
  this.emitEvent('change', {