Browse Source

fix: can't type when press Shift in editor

Ahmad Kholid 2 years ago
parent
commit
b0c5c2260f

+ 1 - 0
src/components/block/BlockGroup.vue

@@ -33,6 +33,7 @@
         :placeholder="t('workflow.blocks.blocks-group.groupName')"
         type="text"
         class="bg-transparent w-full focus:ring-0"
+        @keydown.stop
         @input="$emit('update', { name: $event.target.value })"
       />
     </div>

+ 1 - 0
src/components/block/BlockNote.vue

@@ -58,6 +58,7 @@
       rows="7"
       style="resize: both; min-width: 280px; min-height: 168px"
       class="focus:ring-0 mt-2 bg-transparent"
+      @keydown.stop
       @input="updateData({ note: $event.target.value })"
       @mousedown.stop
       @mouseup="onMouseup"

+ 1 - 1
src/components/block/BlockRepeatTask.vue

@@ -24,8 +24,8 @@
         :value="data.repeatFor"
         placeholder="0"
         class="bg-transparent py-2 px-4 focus:ring-0"
-        required
         style="padding-right: 57px; width: 95%"
+        @keydown.stop
         @input="handleInput"
       />
       <span class="text-gray-600 dark:text-gray-200 absolute right-4">