@ditojs/admin 2.9.0 → 2.9.1

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.9.0",
3
+ "version": "2.9.1",
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",
@@ -83,7 +83,7 @@
83
83
  "vite": "^4.3.5"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "d2a43cca595a94a317a96c4c2f2cd492a2401b26",
86
+ "gitHead": "002f3c713f9d3b10e348d2e9fd07d3a5bea426e6",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -54,8 +54,8 @@ export default DitoComponent.component('DitoDraggable', {
54
54
 
55
55
  methods: {
56
56
  onStart(event) {
57
- this.isDragging = true
58
57
  this.options.onStart?.(event)
58
+ this.isDragging = true
59
59
  this.mouseEvents?.remove()
60
60
  },
61
61
 
@@ -63,7 +63,7 @@ export default DitoComponent.component('DitoDraggable', {
63
63
  this.options.onEnd?.(event)
64
64
  // Keep `isDragging` true until the next mouse interaction so that
65
65
  // confused hover states are cleared before removing the hover catcher.
66
- this.mouseEvents = this.domOn(this.$el, {
66
+ this.mouseEvents = this.domOn(document, {
67
67
  mousedown: this.onMouse,
68
68
  mousemove: this.onMouse,
69
69
  mouseleave: this.onMouse
@@ -72,7 +72,7 @@ export default DitoComponent.component('DitoDraggable', {
72
72
 
73
73
  onMouse() {
74
74
  this.isDragging = false
75
- this.mouseEvents.remove()
75
+ this.mouseEvents?.remove()
76
76
  this.mouseEvents = null
77
77
  }
78
78
  }