Browse Source

fix: block got deleted when press delete on an input

Ahmad Kholid 3 years ago
parent
commit
a1c0c57cdf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/newtab/workflow/WorkflowBuilder.vue

+ 1 - 1
src/components/newtab/workflow/WorkflowBuilder.vue

@@ -547,7 +547,7 @@ export default {
     }
     function onKeyup({ key, target }) {
       const isAnInput =
-        ['INPUT', 'TEXTAREA'].includes(target.tagName) &&
+        ['INPUT', 'TEXTAREA'].includes(target.tagName) ||
         target.isContentEditable;
 
       if (key !== 'Delete' || isAnInput) return;