Skip to content

Commit

Permalink
fix(UI): prevent canc key to trigger delete modal when editing a row
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jun 2, 2021
1 parent e0e6483 commit 5e9c88a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/components/WorkspaceQueryTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 5e9c88a

Please sign in to comment.