1
1
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:
2025-02-06 13:27:02 +01:00
parent 580bef76ba
commit 0f93d70417

View File

@@ -538,7 +538,7 @@ const closeContext = () => {
};
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))
return;
if (selectedRows.value.length === 0) return;
@@ -563,6 +563,7 @@ const deleteSelected = () => {
table: getTable(resultsetIndex.value),
rows
};
console.log(params);
emit('delete-selected', params);
};