@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/dist/dito-admin.es.js +114 -109
- package/dist/dito-admin.umd.js +2 -2
- package/package.json +2 -2
- package/src/mixins/TypeMixin.js +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.2.
|
|
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": "
|
|
85
|
+
"gitHead": "f0449472c803ce29c76442f6b11f646c5bb5dd80",
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "vite build",
|
|
88
88
|
"watch": "yarn build --mode 'development' --watch",
|
package/src/mixins/TypeMixin.js
CHANGED
|
@@ -24,8 +24,8 @@ export default {
|
|
|
24
24
|
|
|
25
25
|
data() {
|
|
26
26
|
return {
|
|
27
|
-
parsedValue:
|
|
28
|
-
changedValue:
|
|
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
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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', {
|