🐛 fix: bug fixed

This commit is contained in:
Paul Valerie GOMA 2025-07-22 10:11:25 +02:00
parent 121780cebe
commit 10e23a05f7

View File

@ -180,7 +180,7 @@ const labelState = computed(() => {
role="alert" role="alert"
aria-live="polite" aria-live="polite"
> >
<template v-if="Array.isArray(props.errorMessage) && props.isInvalid"> <template v-if="Array.isArray(props.errorMessage)">
<VHint <VHint
v-for="message in props.errorMessage" v-for="message in props.errorMessage"
:id="descriptionId" :id="descriptionId"
@ -192,7 +192,7 @@ const labelState = computed(() => {
/> />
</template> </template>
<VHint <VHint
v-else-if="errorMessage && props.isInvalid" v-else-if="errorMessage"
:id="descriptionId" :id="descriptionId"
:key="`error-${errorMessage}`" :key="`error-${errorMessage}`"
:data-testid="descriptionId" :data-testid="descriptionId"
@ -200,7 +200,7 @@ const labelState = computed(() => {
type="alert" type="alert"
icon icon
/> />
<template v-if="Array.isArray(props.validMessage) && props.isValid"> <template v-if="Array.isArray(props.validMessage)">
<VHint <VHint
v-for="message in props.validMessage" v-for="message in props.validMessage"
:id="descriptionId" :id="descriptionId"
@ -212,7 +212,7 @@ const labelState = computed(() => {
/> />
</template> </template>
<VHint <VHint
v-else-if="validMessage && props.isValid" v-else-if="validMessage"
:id="descriptionId" :id="descriptionId"
:key="`error-${validMessage}`" :key="`error-${validMessage}`"
:data-testid="descriptionId" :data-testid="descriptionId"