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