#8725 - submit_form_onClick #1564
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1564
Loading…
Reference in New Issue
No description provided.
Delete Branch "8725_submit_form_onClick"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -135,0 +146,4 @@
const submitForm = async () => {
const isFormValid = await myForm.value.validate();
if (isFormValid) {
try {
sin try catch deberia fallar igual
cierto, la costumbre
@ -326,4 +343,2 @@
ref="myForm"
v-if="formData"
@submit.prevent
@keyup.prevent="onKeyup"
Este prevent se quita?
Lo he corregido
Rebajamos la expectativa de eta PR porque hay un dialogo que puede contener 2 botones a la vez y la lógica del submit no funciona como se espera.
Es el caso de añadir articulo a una entrada, el dialogo siempre se mantiene abierto
Resuelto
@ -339,6 +346,7 @@ defineExpose({
name="form"
:data="formData"
:validate="validate"
:validations="validations()"
Aqui se esta llamando
validations devuelve una función
@ -88,3 +98,3 @@
:label="t('globals.save')"
:title="t('globals.save')"
@click="onClick(false)"
:type="!showSaveAndContinueBtn ? 'submit' : 'button'"
Si funciona igual, veo mas simple usar 2 @click q 4 ternarios
No entiendo.
No funcionan igual. Uno al pulsar, esconde el modal y el continue, limpia el formulario y se mantiene a la vista
Son 2 botones diferentes y tienen condiciones diferentes
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings