#6911 save on enter #207
|
@ -42,7 +42,7 @@ const onDataSaved = () => {
|
|||
closeForm();
|
||||
};
|
||||
|
||||
const submitData = async () => {
|
||||
const onSubmit = async () => {
|
||||
try {
|
||||
isLoading.value = true;
|
||||
const rowsToEdit = $props.rows.map((row) => ({ id: row.id, itemFk: row.itemFk }));
|
||||
|
@ -66,7 +66,7 @@ const closeForm = () => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<QForm @submit="submitData()" @keyup.enter="submitData()" class="all-pointer-events">
|
||||
<QForm @submit="onSubmit()" class="all-pointer-events">
|
||||
<QCard class="q-pa-lg">
|
||||
<span ref="closeButton" class="close-icon" v-close-popup>
|
||||
<QIcon name="close" size="sm" />
|
||||
|
|
Loading…
Reference in New Issue