fix: allow description field autogrow #1692
|
@ -38,7 +38,9 @@ function handleDelete(row) {
|
|||
ticketNotesCrudRef.value.remove([row]);
|
||||
}
|
||||
|
||||
async function handleSave() {
|
||||
async function handleSave(e) {
|
||||
if (e.shiftKey && e.key === 'Enter') return;
|
||||
e.preventDefault();
|
||||
if (!isSaving.value) {
|
||||
isSaving.value = true;
|
||||
await ticketNotesCrudRef.value?.saveChanges();
|
||||
|
@ -70,7 +72,7 @@ async function handleSave() {
|
|||
<div
|
||||
v-for="(row, index) in rows"
|
||||
:key="index"
|
||||
class="q-mb-md row items-center q-gutter-x-md"
|
||||
class="q-mb-md row q-gutter-x-md"
|
||||
>
|
||||
<VnSelect
|
||||
:label="t('ticketNotes.observationType')"
|
||||
|
@ -86,7 +88,8 @@ async function handleSave() {
|
|||
:label="t('basicData.description')"
|
||||
v-model="row.description"
|
||||
class="col"
|
||||
@keyup.enter="handleSave"
|
||||
@keydown.enter.stop="handleSave"
|
||||
autogrow
|
||||
data-cy="ticketNotesDescription"
|
||||
/>
|
||||
<QIcon
|
||||
|
|
Loading…
Reference in New Issue