0
0
Fork 0

refs #6911 feat: remove keyup.eneter=submit for each form

This commit is contained in:
Javier Segarra 2024-03-04 11:14:36 +01:00
parent 901c8c8f71
commit 628d5453a8
8 changed files with 6 additions and 26 deletions

View File

@ -211,7 +211,6 @@ watch(formUrl, async () => {
<QForm
v-if="formData"
@submit="save"
@keyup.enter="save"
@reset="reset"
class="q-pa-md"
id="formModel"

View File

@ -67,7 +67,7 @@ async function remove({ id }) {
<QPage class="column items-center q-pa-md sticky">
<QPageSticky expand position="top" :offset="[16, 16]">
<QCard class="card q-pa-md">
<QForm @submit="submit" @keyup.enter="submit">
<QForm @submit="submit">
<VnInput
ref="input"
v-model="newRma.code"

View File

@ -55,7 +55,7 @@ const onSubmit = async () => {
<QDialog ref="dialogRef">
<QCard class="q-pa-md q-mb-md">
<QCardSection>
<QForm @submit="onSubmit()" @keyup.enter="onSubmit()" class="q-pa-sm">
<QForm @submit="onSubmit()" class="q-pa-sm">
<div>
{{
t('Add observation to all selected clients', {

View File

@ -67,11 +67,7 @@ async function onSubmit() {
</script>
<template>
<QForm
@submit="onSubmit"
@keyup.enter="onSubmit"
class="q-gutter-y-md q-pa-lg formCard"
>
<QForm @submit="onSubmit" class="q-gutter-y-md q-pa-lg formCard">
<VnLogo alt="Logo" fit="contain" :ratio="16 / 9" class="q-mb-md" />
<VnInput

View File

@ -48,11 +48,7 @@ async function onSubmit() {
}
</script>
<template>
<QForm
@submit="onSubmit"
@keyup.enter="onSubmit"
class="q-gutter-y-md q-pa-lg formCard"
>
<QForm @submit="onSubmit" class="q-gutter-y-md q-pa-lg formCard">
<div class="column items-center">
<QIcon name="phonelink_lock" size="xl" color="primary" />
<h5 class="text-center q-my-md">{{ t('twoFactor.insert') }}</h5>

View File

@ -211,7 +211,6 @@ const onThermographCreated = async (data) => {
:observe-form-changes="viewAction === 'create'"
:default-actions="true"
@submit="onSubmit()"
@keyup.enter="onSubmit()"
class="full-width"
style="max-width: 800px"
>

View File

@ -242,12 +242,7 @@ function exceedMaxHeight(pos) {
<template>
<QPage class="q-pa-sm q-mx-xl">
<QForm
@submit="onSubmit()"
@keyup.enter="onSubmit()"
@reset="onReset()"
class="q-pa-sm"
>
<QForm @submit="onSubmit()" @reset="onReset()" class="q-pa-sm">
<QCard class="q-pa-md">
<VnInput
filled

View File

@ -89,12 +89,7 @@ function filterType(val, update) {
<template>
<QPage class="q-pa-sm q-mx-xl">
<QForm
@submit="onSubmit()"
@keyup.enter="onSubmit()"
@reset="onReset()"
class="q-pa-sm"
>
<QForm @submit="onSubmit()" @reset="onReset()" class="q-pa-sm">
<QCard class="q-pa-md">
<div class="row q-col-gutter-md">
<div class="col">