mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: unable to delete rows from context menu
This commit is contained in:
@@ -538,7 +538,7 @@ const closeContext = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const showDeleteConfirmModal = (e: any) => {
|
const showDeleteConfirmModal = (e: any) => {
|
||||||
if (e.code !== 'Delete') return;
|
if (e && e.code !== 'Delete') return;
|
||||||
if (e && e.path && ['INPUT', 'TEXTAREA', 'SELECT'].includes(e.path[0].tagName))
|
if (e && e.path && ['INPUT', 'TEXTAREA', 'SELECT'].includes(e.path[0].tagName))
|
||||||
return;
|
return;
|
||||||
if (selectedRows.value.length === 0) return;
|
if (selectedRows.value.length === 0) return;
|
||||||
@@ -563,6 +563,7 @@ const deleteSelected = () => {
|
|||||||
table: getTable(resultsetIndex.value),
|
table: getTable(resultsetIndex.value),
|
||||||
rows
|
rows
|
||||||
};
|
};
|
||||||
|
console.log(params);
|
||||||
emit('delete-selected', params);
|
emit('delete-selected', params);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user