feat: refs #8725 ok
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Javier Segarra 2025-03-07 14:00:50 +01:00
parent 255df3acd6
commit 215e3a6da4
2 changed files with 4 additions and 5 deletions

View File

@ -322,7 +322,7 @@ async function onKeyup(evt) {
selectionStart = selectionEnd = selectionStart + 1;
return;
}
await submitForm();
await myForm.value.submit(evt);
}
}
@ -342,7 +342,7 @@ defineExpose({
<QForm
ref="myForm"
v-if="formData"
@submit.prevent
@submit.prevent="save"
@keyup="onKeyup"
@reset="reset"
class="q-pa-md"

View File

@ -41,7 +41,7 @@ const onDataSaved = async (formData, requestResponse) => {
emit('onDataSaved', formData, requestResponse);
};
const onClick = async (saveAndContinue) => {
const onClick = async (saveAndContinue = showSaveAndContinueBtn) => {
isSaveAndContinue.value = saveAndContinue;
if (formModelRef.value) {
await formModelRef.value.submitForm();
@ -64,7 +64,7 @@ defineExpose({
@submit="onClick"
v-bind="$attrs"
@on-data-saved="onDataSaved"
@submit.prevent
:prevent-submit="false"
>
<template #form="{ data, validate }">
<span ref="closeButton" class="close-icon" v-close-popup>
@ -110,7 +110,6 @@ defineExpose({
:loading="isLoading"
data-cy="FormModelPopup_isSaveAndContinue"
z-max
@click="onClick(true)"
/>
</div>
</template>