mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
fix(Dashboard Drag Placeholder): doesn't allow placeholder items to be dragged anymore and keeps the height and width of a widget when resizing the grid of the dashboard
This commit is contained in:
@@ -12,7 +12,8 @@ export default {
|
||||
"startResize",
|
||||
"dragging",
|
||||
"endDrag",
|
||||
"dropDrag"
|
||||
"dropDrag",
|
||||
"item"
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
@@ -63,12 +64,12 @@ export default {
|
||||
template: `
|
||||
<div class="drop-grid-item"
|
||||
@mousedown="registerDragAction"
|
||||
@touchstart="tryDragStart($event, item)"
|
||||
@touchstart.prevent="tryDragStart($event, item)"
|
||||
@touchend="touchDragEnd"
|
||||
@dragstart="tryDragStart($event, item)"
|
||||
@drag="$emit('dragging',$event)"
|
||||
@dragend="$emit('endDrag', $event)"
|
||||
:draggable="active">
|
||||
:draggable="active && !item.placeholder">
|
||||
<slot v-bind="item"></slot>
|
||||
</div>`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user