mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
don't emit table drag if the position diden't change
This commit is contained in:
parent
efa043ed35
commit
439d105858
1 changed files with 5 additions and 2 deletions
|
@ -108,7 +108,10 @@ function dragDropRow() {
|
||||||
data.splice(draggedRow, 1);
|
data.splice(draggedRow, 1);
|
||||||
data.splice(draggedOverRow, 0, row);
|
data.splice(draggedOverRow, 0, row);
|
||||||
data = data;
|
data = data;
|
||||||
emit('draggedRow', draggedRow, draggedOverRow);
|
// Don't emit if we are at the same spot
|
||||||
|
if (draggedRow !== draggedOverRow){
|
||||||
|
emit('draggedRow', draggedRow, draggedOverRow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset Drag & Remove Selection
|
// Reset Drag & Remove Selection
|
||||||
|
|
Loading…
Add table
Reference in a new issue