hide content of dashboard item on drag not via event but via css class

This commit is contained in:
chfhtw
2026-04-13 13:28:15 +02:00
parent 5fa374259e
commit a6f81006be
4 changed files with 7 additions and 12 deletions
-6
View File
@@ -31,7 +31,6 @@ export default {
emits: [
"rearrangeItems",
"gridHeight",
"draggedItem",
"update:additionalRow"
],
data() {
@@ -380,8 +379,6 @@ export default {
this.updateCursor(evt);
this.draggedItem = item;
this.$emit('draggedItem', item);
//clones the widget for the drag Image
// NOTE(chris): this is the element that follows the mouse while dragging
@@ -409,7 +406,6 @@ export default {
setTimeout(() => {
this.mode = MODE_RESIZE;
this.draggedItem = item;
this.$emit('draggedItem', item);
}, 0);
this._dragStart(evt);
@@ -465,7 +461,6 @@ export default {
this.tempPositionUpdates = null;
this.draggedOffset = [0,0],
this.draggedItem = null;
this.$emit('draggedItem',null);
},
dragEnd() {
this.removeWidgetClones();
@@ -491,7 +486,6 @@ export default {
this.$emit('rearrangeItems', updated.filter(v => v));
this.draggedItem = null;
this.$emit('draggedItem', null);
},
_updateCorrectedPositions(updated) {
updated.forEach((item, index) => {