fix(FormGroup): don't check for error slot so help slot can render (#1888)

This commit is contained in:
Neil Richter
2024-06-24 10:54:14 +02:00
committed by GitHub
parent 4d5f250902
commit 99c52e5008

View File

@@ -23,7 +23,7 @@
<div :class="[label ? ui.container : '']">
<slot v-bind="{ error }" />
<p v-if="(typeof error === 'string' && error) || $slots.error" :class="[ui.error, size]">
<p v-if="typeof error === 'string' && error" :class="[ui.error, size]">
<slot v-if="$slots.error" name="error" v-bind="{ error, label, name, hint, description, help }" />
<template v-else>
{{ error }}