Skip to content

Commit

Permalink
fix(FormGroup): don't check for error slot so help slot can render (
Browse files Browse the repository at this point in the history
  • Loading branch information
noook authored Jun 24, 2024
1 parent 4d5f250 commit 99c52e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/FormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 99c52e5

Please sign in to comment.