Fix dragend status
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-02-14 09:55:18 -03:00
parent ca06140a8d
commit fbe8c912f6
1 changed files with 8 additions and 1 deletions

View File

@ -306,7 +306,13 @@ const moveRow = async (draggedRowIndex, targetRowIndex, entryIndex) => {
}; };
const handleDrop = () => { 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); moveRow(draggedRowIndex.value, targetRowIndex.value, entryRowIndex.value);
cleanDragAndDropData(); cleanDragAndDropData();
}; };
@ -357,6 +363,7 @@ const cleanDragAndDropData = () => {
:pagination="{ rowsPerPage: 0 }" :pagination="{ rowsPerPage: 0 }"
class="full-width" class="full-width"
table-style="user-select: none;" table-style="user-select: none;"
@dragend="cleanDragAndDropData()"
> >
<template #body="props"> <template #body="props">
<QTr <QTr