1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-09 19:20:04 +00:00

Resolve "Scroll to the first error if form submit fail"

This commit is contained in:
Davide Silvestri 2022-03-29 12:25:01 +00:00
parent bb87d5906b
commit adcb05c25b
23 changed files with 176 additions and 110 deletions
web-frontend/modules/database/components/field

View file

@ -1,11 +1,11 @@
<template>
<form class="context__form" @submit.prevent="submit">
<div class="control">
<FormElement :error="fieldHasErrors('name')" class="control">
<div class="control__elements">
<input
ref="name"
v-model="values.name"
:class="{ 'input--error': $v.values.name.$error }"
:class="{ 'input--error': fieldHasErrors('name') }"
type="text"
class="input"
:placeholder="$t('fieldForm.name')"
@ -41,7 +41,7 @@
{{ $t('error.nameTooLong') }}
</div>
</div>
</div>
</FormElement>
<div v-if="forcedType === null" class="control">
<div class="control__elements">
<Dropdown