1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-02 10:27:19 +01:00

fix(UI): prevent canc key to trigger delete modal when editing a row

This commit is contained in:
fabio286 2021-06-02 12:32:12 +02:00
parent e0e6483d1f
commit 5e9c88a7fd

View File

@ -346,7 +346,9 @@ export default {
closeContext () {
this.isContext = false;
},
showDeleteConfirmModal () {
showDeleteConfirmModal (e) {
if (e && e.path && ['INPUT', 'TEXTAREA', 'SELECT'].includes(e.path[0].tagName))
return;
this.isDeleteConfirmModal = true;
},
hideDeleteConfirmModal () {