Browse Source

fix(nc-gui): prevent on press enter go to next question in survey form

pull/7664/head
Ramesh Mane 8 months ago
parent
commit
fc316dfc74
  1. 1
      packages/nc-gui/components/cell/Json.vue
  2. 1
      packages/nc-gui/components/cell/TextArea.vue

1
packages/nc-gui/components/cell/Json.vue

@ -185,6 +185,7 @@ watch(isExpanded, () => {
:hide-minimap="true" :hide-minimap="true"
:disable-deep-compare="true" :disable-deep-compare="true"
@update:model-value="localValue = $event" @update:model-value="localValue = $event"
@keydown.enter.stop
/> />
<span v-if="error" class="nc-cell-field text-xs w-full py-1 text-red-500"> <span v-if="error" class="nc-cell-field text-xs w-full py-1 text-red-500">

1
packages/nc-gui/components/cell/TextArea.vue

@ -296,6 +296,7 @@ watch(inputWrapperRef, () => {
:class="{ :class="{
'cursor-move': isDragging, 'cursor-move': isDragging,
}" }"
@keydown.enter.stop
> >
<div <div
v-if="column" v-if="column"

Loading…
Cancel
Save