1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: prevent delete confirmation modal from triggering on non-delete key presses, fixes #906

This commit is contained in:
2024-12-24 11:03:27 +01:00
parent 2bd69c6263
commit 8de99dae7b

View File

@@ -538,6 +538,7 @@ const closeContext = () => {
};
const showDeleteConfirmModal = (e: any) => {
if (e.code !== 'Delete') return;
if (e && e.path && ['INPUT', 'TEXTAREA', 'SELECT'].includes(e.path[0].tagName))
return;
if (selectedRows.value.length === 0) return;