diff --git a/src/components/input/VInput.vue b/src/components/input/VInput.vue index 9649a87..61b5f01 100644 --- a/src/components/input/VInput.vue +++ b/src/components/input/VInput.vue @@ -165,8 +165,8 @@ const labelState = computed(() => { v-bind="attrs" :class="[styles['text-body-MD-standard-text-Regular'], { 'p-inputtext': true, - 'error': props.isInvalid && !props.isValid && !props.disabled, - 'success': !props.isInvalid && props.isValid && !props.disabled, + 'error': props.isInvalid && !props.isValid && !props.disabled || !!props.errorMessage, + 'success': !props.isInvalid && props.isValid && !props.disabled && !props.errorMessage, }]" :disabled="props.disabled" :aria-disabled="props.disabled" @@ -180,7 +180,7 @@ const labelState = computed(() => { role="alert" aria-live="polite" > -