🐛 fix: bug fixed

This commit is contained in:
Paul Valerie GOMA 2025-07-22 10:14:30 +02:00
parent 10e23a05f7
commit e4670e3d18

View File

@ -87,8 +87,8 @@ const labelState = computed(() => {
v-bind="attrs" v-bind="attrs"
:class="[styles['text-body-MD-standard-text-Regular'], { :class="[styles['text-body-MD-standard-text-Regular'], {
'p-password': true, 'p-password': true,
'error': props.isInvalid && !props.isValid && !props.disabled, 'error': props.isInvalid && !props.isValid && !props.disabled || !!props.errorMessage,
'success': !props.isInvalid && props.isValid && !props.disabled, 'success': !props.isInvalid && props.isValid && !props.disabled && !props.errorMessage || !!props.validMessage,
}]" }]"
:disabled="props.disabled" :disabled="props.disabled"
:aria-disabled="props.disabled" :aria-disabled="props.disabled"
@ -148,8 +148,8 @@ const labelState = computed(() => {
v-bind="attrs" v-bind="attrs"
:class="[styles['text-body-MD-standard-text-Regular'], { :class="[styles['text-body-MD-standard-text-Regular'], {
'p-textarea': true, 'p-textarea': true,
'error': props.isInvalid && !props.isValid && !props.disabled, 'error': props.isInvalid && !props.isValid && !props.disabled || !!props.errorMessage,
'success': !props.isInvalid && props.isValid && !props.disabled, 'success': !props.isInvalid && props.isValid && !props.disabled && !props.errorMessage || !!props.validMessage,
}]" }]"
:disabled="props.disabled" :disabled="props.disabled"
:aria-disabled="props.disabled" :aria-disabled="props.disabled"
@ -166,7 +166,7 @@ const labelState = computed(() => {
:class="[styles['text-body-MD-standard-text-Regular'], { :class="[styles['text-body-MD-standard-text-Regular'], {
'p-inputtext': true, 'p-inputtext': true,
'error': props.isInvalid && !props.isValid && !props.disabled || !!props.errorMessage, 'error': props.isInvalid && !props.isValid && !props.disabled || !!props.errorMessage,
'success': !props.isInvalid && props.isValid && !props.disabled && !props.errorMessage, 'success': !props.isInvalid && props.isValid && !props.disabled && !props.errorMessage || !!props.validMessage,
}]" }]"
:disabled="props.disabled" :disabled="props.disabled"
:aria-disabled="props.disabled" :aria-disabled="props.disabled"