#8372 prevent double submit #1333
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1333
Loading…
Reference in New Issue
No description provided.
Delete Branch "8372-fixDoubleRequest"
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?
#8372 remove trailing commas in various filesto #8372 prevent double submit@ -208,3 +208,3 @@
}
async function save() {
async function save({ prevent = true }) {
duda, pq no poner
save(prevent = true)
y ya no hace falta pasar el true, solo los false?Lo probé, no funciona. Si se hace enter en un input normal, primero se dispara el evt @submit y luego entre en qFormMixin > evt keyup. El evt @submit de quasar siempre pasa como primer argumento la propiedad. Probé a ver si podía ponerle un .prevent para que no se disparé desde formModel pero así no funcionaba.
Ahora creo va finito
No usar objeto y la opcion por defecto false
Lo he probado, si hago lo que hemos hablado cuando formMixin llama a onSubmit este dispara @submit entonces hace save().
@ -88,3 +89,3 @@
const { vm } = mount({ propsData: { url, model } });
await vm.save();
await vm.save(prevent);
Si false es el por defecto, no hace falta pasar false
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings