Skip to content

Commit 35251d3

Browse files
committed
autocomplete email field in login form
1 parent dbf9d81 commit 35251d3

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

confiture-web-app/src/components/ui/DsfrField.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const props = defineProps<{
1111
title?: string;
1212
error?: string;
1313
id: string;
14+
autocomplete?: string;
1415
}>();
1516
1617
defineEmits<{
@@ -43,6 +44,7 @@ defineExpose({ inputRef });
4344
:required="required"
4445
:pattern="pattern ? pattern.toString().slice(1, -1) : undefined"
4546
:title="title"
47+
:autocomplete="autocomplete"
4648
:value="modelValue"
4749
@input="
4850
$emit('update:modelValue', ($event.target as HTMLInputElement).value)

confiture-web-app/src/pages/account/LoginPage.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ async function handleSubmit() {
142142
hint="Format attendu : nom@domaine.fr"
143143
type="email"
144144
required
145+
autocomplete="email"
145146
:error="userEmailError"
146147
/>
147148

0 commit comments

Comments
 (0)