Fix dragend status
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
ca06140a8d
commit
fbe8c912f6
|
@ -306,7 +306,13 @@ const moveRow = async (draggedRowIndex, targetRowIndex, entryIndex) => {
|
|||
};
|
||||
|
||||
const handleDrop = () => {
|
||||
if (!draggedRowIndex.value && !targetRowIndex.value) return;
|
||||
if (
|
||||
!draggedRowIndex.value &&
|
||||
draggedRowIndex.value !== 0 &&
|
||||
!targetRowIndex.value &&
|
||||
draggedRowIndex.value !== 0
|
||||
)
|
||||
return;
|
||||
moveRow(draggedRowIndex.value, targetRowIndex.value, entryRowIndex.value);
|
||||
cleanDragAndDropData();
|
||||
};
|
||||
|
@ -357,6 +363,7 @@ const cleanDragAndDropData = () => {
|
|||
:pagination="{ rowsPerPage: 0 }"
|
||||
class="full-width"
|
||||
table-style="user-select: none;"
|
||||
@dragend="cleanDragAndDropData()"
|
||||
>
|
||||
<template #body="props">
|
||||
<QTr
|
||||
|
|
Loading…
Reference in New Issue