refs #6911 feat: reaneme method and remove keyup
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-03-04 11:36:46 +01:00
parent 58dc4c253a
commit 6bc8cdc0c3
1 changed files with 2 additions and 2 deletions

View File

@ -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" />